commandeer icon indicating copy to clipboard operation
commandeer copied to clipboard

Automatically sets up command line flags based on struct fields and tags.

Results 5 commandeer issues
Sort by recently updated
recently updated
newest added

I haven't used base commandeer yet, but the wanted to try using cobrafy to reuse some structs we use for JSON parsing as arguments for a sub command we shell...

While attempting to use a wrapped version of `time.Duration`, I ran into a crash when using commandeer. https://github.com/jaffee/commandeer/blob/07c6265b86ee0e0cd87f47e8f50b027653e70b79/com.go#L274-L358 All of these type assertions will panic if the type is named.

By default, running a binary set up with commandeer will print out the available flags, but I don't think there's an easy/general way to set a usage message above the...

This is probably sorta insane, I just wanted to see if it could be done. Map members only define arguments for entries they have when the provided structure-or-map was scanned...

like docker ` docker [OPTIONS] COMMAND ` ex: ` docker --debug run --it busybox ` go: ``` type MyApp struct { Debug bool `flag:"debug"` CurCommand interface{} `flag:"&command"` Run RunCmd `command:"run"`...