Sascha Grunert
38d0ac6296
Removed GetTakesFile and stick to type assertions
...
Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
2019-08-25 17:50:18 +02:00
Sascha Grunert
a1cf7f44b6
Add TakesFile
to fish shell completion
...
The new `TakesFile` flag will be now consumed by the fish shell
completion generator.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-08-25 13:58:18 +02:00
Sascha Grunert
3681b057c5
Update TakesFile
flag to apply only to supported flags
...
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-08-13 09:43:57 +02:00
Sascha Grunert
e9e9e0ac5d
Add TakesFile
indicator to flag
...
This new member of `Flag` indicates if the flag expects a file as input.
This is especially useful for documentation and shell completion purposes.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-08-09 09:10:41 +02:00
Sascha Grunert
40d4a25a01
Add markdown and man page docs generation methods
...
This adds two new methods to the `App` struct:
- `ToMarkdown`: creates a markdown documentation string
- `ToMan`: creates a man page string
Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
2019-08-07 14:02:28 +02:00
Ajitem Sahasrabuddhe
7a6f3d4394
fix tests
2019-08-04 20:23:32 +05:30
Ajitem Sahasrabuddhe
04948f2152
generate test with go generate
2019-08-04 11:06:19 +05:30
Ajitem Sahasrabuddhe
86e10211de
remove redundant go generate from altsrc
...
update go generate in cli package to generate both files
regeneration test
2019-08-04 11:05:50 +05:30
Ajitem Sahasrabuddhe
add69c7d4f
updated flag types generated courtesy fg cli
2019-08-03 22:48:12 +05:30
Lynn Cyrin
386b379d19
Revert "reset generated flags changes"
...
This reverts commit 9ec594d529
.
2019-07-28 22:45:43 -07:00
Lynn Cyrin
9ec594d529
reset generated flags changes
2019-07-28 22:34:07 -07:00
Lynn Cyrin
922d231891
./generate-flag-types cli -i flag-types.json -o flag_generated.go
2019-07-11 21:28:09 -07:00
Brad Rydzewski
21fcab0dee
ability to load variable from file
2017-10-31 10:29:11 -05:00
Dan Buch
77f1130e65
Generate flag type lookup funcs
2016-07-10 12:50:57 -04:00
Dan Buch
6185b8d8fd
Generate code for flag types and context accessors
2016-06-23 00:56:44 -04:00