cli icon indicating copy to clipboard operation
cli copied to clipboard

Does urfave cli meet the following requirements

Open rxliuli opened this issue 3 years ago • 1 comments

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 avatar Jan 30 '22 02:01 rxliuli

@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 "--".

dearchap avatar Sep 15 '22 17:09 dearchap

3 is a duplicate of #1113 and will be discussed there.

dearchap avatar Oct 21 '22 22:10 dearchap