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
798e1f3d3a
fix spacing issue
2019-08-04 20:29:53 +05:30
Ajitem Sahasrabuddhe
7a6f3d4394
fix tests
2019-08-04 20:23:32 +05:30
Ajitem Sahasrabuddhe
c676ed4caa
indentation fixes in template
...
regeneration test
2019-08-04 11:04:23 +05:30
Ajitem Sahasrabuddhe
2a084945a4
move around code
...
change package to flag-gen to avoid conflict with flag-generator binary
test code generation
2019-08-04 10:28:08 +05:30