Replies: 1 comment 2 replies
-
|
Are you sure it is a good idea to change the usage/help text of a CLI tool based on some arbitrary unknown condition? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm aware about the
privateoption (from the command-private and private-reveal), but I think they don't provide the solution for my usecase.My intention is to show some subcommands on the help based on which directory I'm in (actually I wanna use the git URL, but using the directory here for simplicity sake).
Hypothetical example:
~/src/frontenddirectory, I want to expose thevite-serveroption.~/src/backenddir, I want to expose thedbmigrateoption (and hide thevite-server)vite-serveranddbmigrateI envisage the usage to be like this:
Maybe the rules for
private_filtercould be the same as the ones forfilter.Beta Was this translation helpful? Give feedback.
All reactions