diff --git a/__tests__/commands/openapi/validate.test.ts b/__tests__/commands/openapi/validate.test.ts index 608209124..022ca05b8 100644 --- a/__tests__/commands/openapi/validate.test.ts +++ b/__tests__/commands/openapi/validate.test.ts @@ -211,12 +211,4 @@ describe('rdme openapi:validate', () => { ); }); }); - - describe('rdme validate alias', () => { - it('should should `rdme openapi:validate`', async () => { - return expect( - (await oclifRunCommand(['validate', require.resolve('@readme/oas-examples/3.0/json/petstore.json')])).result, - ).toContain(chalk.green('petstore.json is a valid OpenAPI API definition!')); - }); - }); }); diff --git a/documentation/commands.md b/documentation/commands.md index cf483d844..b0df4f942 100644 --- a/documentation/commands.md +++ b/documentation/commands.md @@ -35,7 +35,6 @@ USAGE * [`rdme help [COMMAND]`](#rdme-help-command) * [`rdme login`](#rdme-login) * [`rdme logout`](#rdme-logout) -* [`rdme open`](#rdme-open) * [`rdme openapi [SPEC]`](#rdme-openapi-spec) * [`rdme openapi:convert [SPEC]`](#rdme-openapiconvert-spec) * [`rdme openapi:inspect [SPEC]`](#rdme-openapiinspect-spec) @@ -262,21 +261,6 @@ DESCRIPTION Logs the currently authenticated user out of ReadMe. ``` -## `rdme open` - -Open your current ReadMe project in the browser. - -``` -USAGE - $ rdme open [--dash] - -FLAGS - --dash Opens your current ReadMe project dashboard. - -DESCRIPTION - Open your current ReadMe project in the browser. -``` - ## `rdme openapi [SPEC]` Upload, or resync, your OpenAPI/Swagger definition to ReadMe. @@ -403,9 +387,6 @@ FLAGS DESCRIPTION Validate your OpenAPI/Swagger definition. - -ALIASES - $ rdme validate ``` ## `rdme versions` diff --git a/documentation/rdme.md b/documentation/rdme.md index a12b4d16a..476af5132 100644 --- a/documentation/rdme.md +++ b/documentation/rdme.md @@ -194,7 +194,7 @@ We recommend using the [quick start](#quick-start) to get started with GitHub Ac The command syntax in GitHub Actions is functionally equivalent to the CLI. For example, take the following CLI command: ```sh -rdme validate [url-or-local-path-to-file] +rdme openapi:validate [url-or-local-path-to-file] ``` To execute this command via GitHub Actions, the step would look like this: @@ -202,7 +202,7 @@ To execute this command via GitHub Actions, the step would look like this: ```yml - uses: readmeio/rdme@RDME_VERSION with: - rdme: validate [url-or-local-path-to-file] + rdme: openapi:validate [url-or-local-path-to-file] ``` The following section has links to full GitHub Actions workflow file examples. diff --git a/src/commands/open.ts b/src/commands/open.ts index 2054d7ce2..e2f55649b 100644 --- a/src/commands/open.ts +++ b/src/commands/open.ts @@ -15,6 +15,14 @@ export default class OpenCommand extends BaseCommand { mock: Flags.boolean({ description: '[hidden] used for mocking.', hidden: true }), }; + static hidden = true; + + static state = 'deprecated'; + + static deprecationOptions = { + message: '`rdme open` is deprecated and will be removed in a future release.', + }; + async run() { const { dash, mock } = this.flags; const { apiKey, project } = getCurrentConfig(); diff --git a/src/commands/openapi/validate.ts b/src/commands/openapi/validate.ts index cb65c375f..6b49afe8e 100644 --- a/src/commands/openapi/validate.ts +++ b/src/commands/openapi/validate.ts @@ -11,10 +11,6 @@ export default class OpenAPIValidateCommand extends BaseCommand