Commit Graph

10 Commits

Author SHA1 Message Date
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
3e4237a67f
Move genflags tool to cmd/ and pin to previous release
to alleviate problems caused by the circular dependency of using the
same code as a library that is potentially being generated to adhere to
a different API.
2022-08-14 10:02:07 -04:00
Jesse Szwedko
ee0756044c
Upgrade gopkg.in/yaml to v3
Fixes vulnerability: https://github.com/advisories/GHSA-hp87-p4gw-j4gq

YAML v3 deserializes maps as map[string]interface{} so we handle this in
MapImportSource now.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
2022-06-18 11:49:24 -07:00
a78717f4f9
Merge remote-tracking branch 'origin/main' into michaeljs1990-add-flag-category-support 2022-05-19 07:40:56 -04:00
bc9ad9fede
Generate RequiredFlag and VisibleFlag implementations 2022-05-08 13:52:32 -04:00
21d435d4d1
Adapt flag generation for flag categories 2022-05-07 08:50:09 -04:00
2ac3904d12
Include * in documented flag value type when applicable 2022-05-04 23:11:05 -04:00
71cd131794
Add more tests to flag generation code 2022-05-01 23:36:59 -04:00
2630f2642a
Add missing go.sum entry
plus minor touchups to genflags app
2022-05-01 23:16:59 -04:00
ed0033984b
Generate flag types (again?)
Closes #1381
2022-05-01 23:02:05 -04:00