urfave-cli/cmd/urfave-cli-genflags
Jakub Nowakowski 891ffb017b Add DestinationPointer for flags generator
In this commit I added a DestinationPointer variable that should be set
if the `Destination` should be configured as a pointer for a specific
flag type. It is expected that Generic type which is an interface will
not be a pointer but a struct. Before this change the code compilation
was failing with `type *Generic is pointer to interface, not interface`.

See https://github.com/urfave/cli/issues/1441
2022-10-05 22:04:46 -04:00
..
generated_test.gotmpl Move genflags tool to cmd/ and pin to previous release 2022-08-14 10:02:07 -04:00
generated.gotmpl Add DestinationPointer for flags generator 2022-10-05 22:04:46 -04:00
go.mod Move genflags tool to cmd/ and pin to previous release 2022-08-14 10:02:07 -04:00
go.sum Rebase main, update flag-spec.yaml to add Action field 2022-09-16 00:38:20 +09:00
main_test.go Add DestinationPointer for flags generator 2022-10-05 22:04:46 -04:00
main.go Fix: dont generate pointer for dest for Generic flag 2022-09-10 18:03:30 -04:00
Makefile Move genflags tool to cmd/ and pin to previous release 2022-08-14 10:02:07 -04:00
README.md Move genflags tool to cmd/ and pin to previous release 2022-08-14 10:02:07 -04:00

urfave-cli-genflags

This is a tool that is used internally by urfave/cli to generate flag types and methods from a YAML input. It intentionally pins usage of github.com/urfave/cli/v2 to a release rather than using the adjacent code so that changes don't result in this tool refusing to compile. It's almost like dogfooding?

support warning

This tool is maintained as a sub-project and is not covered by the API and backward compatibility guaranteed by releases of urfave/cli.