Commit Graph

6 Commits

Author SHA1 Message Date
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