cli
cli copied to clipboard
Does urfave cli meet the following requirements
I tried to use urfave's api to do it, but I didn't find it, maybe I don't know?
saki run setup --filter libs/* # single filter parameter
saki run setup --filter libs/* apps/* # Multiple filter parameters
saki run --filter libs/* setup # swap the location of arguments and commands
saki exec --filter libs/* -- saki build lib # Execute arbitrary commands, split by --
@rxliuli Are you depending on the urfave/cli lbrary to expand the "*" ? If yes then that is not supported. If you are referring simply to multiple value for an option then
saki run setup --filter libs/foo --filter libs/bar --filter apps/foo2....
is supported via StringSlice flag.
The 3rd example in your list is definitely supported but its a long standing feature ask so we might add that in on that
4th example you give is possible using the urfave/cli as -- is used to demercate end of options/args . It will upto the user code to handle everything after the "--".
3 is a duplicate of #1113 and will be discussed there.