Commit Graph

14 Commits

Author SHA1 Message Date
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
ac5c97b418
add latest assets file 2019-08-04 20:45:28 +05:30
Ajitem Sahasrabuddhe
489d92d2e2
add missing os package 2019-08-04 20:44:15 +05:30
Ajitem Sahasrabuddhe
a7f0d86509
add zero mod fs back and commit file with latest ts 2019-08-04 20:33:21 +05:30
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
58ae5eb590
move entire build system to go 2019-08-04 20:06:44 +05:30
Ajitem Sahasrabuddhe
8547458f1d
remove zero mod fs 2019-08-04 19:01:47 +05:30
Ajitem Sahasrabuddhe
826954c979
update app name and remove version 2019-08-04 11:09:34 +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