-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: experiment with a decorator to hide commands from the help screen #574
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is absolutely wild. wanna add this to the oas
command as well?
Running into all sorts of issues with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -10,6 +10,7 @@ export function getCategories(): Record< | |||
name: string; | |||
description: string; | |||
position: number; | |||
hidden: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly blown away by how much the rewrite has been helping us this past week
🧰 Changes
This adds a new
@isHidden
decorator that when applied to a command class will hide it from all--help
screens. This decorator is being applied to the inactiveoas
and deprecatedswagger
commands.🧬 QA & Testing
npm run debug -- --help
you shouldn't seeoas
orswagger
anywhere.npm run debug -- openapi --help
you shouldn't seeswagger
in the "Related commands" section.Run
npm run build
and then do the same checks against./bin/rdme
and you should see the same.