Skip to content

Commit

Permalink
chore: add deprecate notice to serve command
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVarchuk committed Mar 21, 2022
1 parent 8a60f97 commit d34b0e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ YargsParser.command(
handleError(e);
}
},
[
res => {
console.log(
`\n⚠️ This command is deprecated. Use openapi-cli for it: npx @redocly/openapi-cli preview-docs petstore.yaml⚠️\n`,
);
return res;
},
],
)
.command(
'build <spec>',
Expand Down

0 comments on commit d34b0e6

Please sign in to comment.