diff --git a/src/lib/prepareOas.ts b/src/lib/prepareOas.ts index 10ffffbb1..5c2f5931e 100644 --- a/src/lib/prepareOas.ts +++ b/src/lib/prepareOas.ts @@ -205,33 +205,28 @@ export default async function prepareOas( // Checks to see if the selected file is a postman collection and throws a warning in the console depending on the command. if (definitionVersion.specification === 'postman') { switch (command) { - case 'openapi': { + case 'openapi': warn( 'You are attempting to upload a Postman collection. This feature is currently experimental. For more information, visit our docs here: https://docs.readme.com/main/docs/openapi#the-api-reference' ); break; - } - case 'openapi:validate': { + case 'openapi:validate': warn( 'You are attempting to validate a Postman collection. This feature is currently experimental. For more information, visit our docs here: https://docs.readme.com/main/docs/openapi#the-api-reference' ); break; - } - case 'openapi:inspect': { + case 'openapi:inspect': warn( 'You are inspecting a Postman collection. This feature is currently experimental. For more information, visit our docs here: https://docs.readme.com/main/docs/openapi#the-api-reference' ); break; - } - case 'openapi:convert': { + case 'openapi:convert': warn( 'You are attempting to convert a Postman collection to an OpenAPI file. This feature is currently experimental. For more information, visit our docs here: https://docs.readme.com/main/docs/openapi#the-api-reference' ); break; - } - default: { + default: debug(`Type ${chalk.yellow('rdme help')} to see all commands`); - } } }