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
private
option (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/frontend
directory, I want to expose thevite-server
option.~/src/backend
dir, I want to expose thedbmigrate
option (and hide thevite-server
)vite-server
anddbmigrate
I envisage the usage to be like this:
Maybe the rules for
private_filter
could be the same as the ones forfilter
.Beta Was this translation helpful? Give feedback.
All reactions