chore:improve deprecation message in serve command

This commit is contained in:
Alex Varchuk 2022-07-25 19:04:28 +03:00
parent 17bb08909a
commit 920766c068
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ The two following commands are available:
- `redoc-cli serve [spec]` - starts the server with `spec` rendered with ReDoc. - `redoc-cli serve [spec]` - starts the server with `spec` rendered with ReDoc.
Supports a server-side rendering mode (`--ssr`) Supports a server-side rendering mode (`--ssr`)
and can watch the spec (`--watch`) to automatically reload the page whenever it changes.\ and can watch the spec (`--watch`) to automatically reload the page whenever it changes.\
Deprecated. Use `npx @redocly/openapi-cli preview-docs [spec]` Deprecated. Use `npx @redocly/cli preview-docs [spec]`
- `redoc-cli bundle [spec]` - bundles `spec` and Redoc into a **zero-dependency** HTML file.\ - `redoc-cli bundle [spec]` - bundles `spec` and Redoc into a **zero-dependency** HTML file.\
Deprecated. Use Use "build" command instead. Deprecated. Use Use "build" command instead.
- `redoc-cli build [spec]` - build `spec` and Redoc into a **zero-dependency** HTML file. - `redoc-cli build [spec]` - build `spec` and Redoc into a **zero-dependency** HTML file.

View File

@ -182,7 +182,7 @@ YargsParser.command(
[ [
res => { res => {
console.log( console.log(
`\n⚠ This command is deprecated. Use "npx @redocly/openapi-cli preview-docs petstore.yaml"\n`, `\n⚠ This command is deprecated. Use "npx @redocly/cli preview-docs petstore.yaml"\n`,
); );
return res; return res;
}, },