Aaron Berns
52a016034a
adjust custom-error related interface, struct and methods to reflect change in RequiredFlag interface
5 years ago
Aaron Berns
eb1734ba59
change RequiredFlagsErr to RequiredFlagErr, update to struct for custom message
5 years ago
Aaron Berns
fffdd82c00
add ability to combine multiple error strings to Error() function
5 years ago
Aaron Berns
ed4ac1876d
update requiredFlagsErr interface, errRequiredFlags struct and associated functions to handle map
5 years ago
Aaron Berns
addd467e5b
update checkRequiredFlags function to check RequiredFlagsErr field and return map of missing flag names with matching bool for RequiredFlagsErr value
5 years ago
Aaron Berns
a064d9082c
manually add FlagsErrRequired field and function to generated flags
5 years ago
Aaron Berns
95f45c1e60
add RequiredFlagsErr interface
5 years ago
Lynn Cyrin (they/them)
23c8303026
Merge pull request #862 from russoj88/UpdateREADME_gopkg.in_v1
...
Rewrite the "pinning to v1" section.
5 years ago
russoj88
6a25af9641
Merge branch 'master' into UpdateREADME_gopkg.in_v1
5 years ago
Audrius Butkevicius
ecd576e779
Merge pull request #868 from urfave/lynncyrin-patch-1
...
Modernize readme
5 years ago
Lynn Cyrin (they/them)
e11183fe50
Modernize readme
...
I assume that people no longer care about what the package was named many years ago
5 years ago
russoj88
3bc62c4fde
Mimic v2 example code from above.
5 years ago
russoj88
62b8a7cc2c
Add "Using v1 releases" to table of contents.
5 years ago
russoj88
cc091db561
Update README.md
...
Only instruct on right way to use library.
Co-Authored-By: Lynn Cyrin (they/them) <lynncyrin@gmail.com>
5 years ago
russoj88
f529dad70c
Update README.md
...
Include suggestion to put example in.
Co-Authored-By: Lynn Cyrin (they/them) <lynncyrin@gmail.com>
5 years ago
russoj88
f2c26bab77
Rewrite the "pinning to v1" section.
5 years ago
Sascha Grunert
3681b057c5
Update `TakesFile` flag to apply only to supported flags
...
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
5 years ago
Audrius Butkevicius
6cc7e987c4
Merge pull request #856 from FaranIdo/master
...
Add Subcommand fallback call to ExitErrHandler, fixing #816
5 years ago
FaranIdo
08c24e22ed
add missing ExitErrHandler in command + matching test, fixing #816
5 years ago
Ajitem Sahasrabuddhe
7e49cc210a
Merge pull request #848 from saschagrunert/fish-shell
...
Add fish shell completion support
5 years ago
Ajitem Sahasrabuddhe
4e42a2f02c
Merge branch 'master' into fish-shell
5 years ago
Ajitem Sahasrabuddhe
8b18c71e1a
Merge pull request #851 from saschagrunert/takes-file
...
Add `TakesFile` indicator to flag
5 years ago
Ajitem Sahasrabuddhe
56d12d0c2f
Merge branch 'master' into fish-shell
5 years ago
Sascha Grunert
c6c200864d
Merge branch 'master' into takes-file
5 years ago
Ajitem Sahasrabuddhe
7058c58eb6
Merge pull request #847 from saschagrunert/remove-date-var
...
Remove unused `Date` variable from `cliTemplate`
5 years ago
Audrius Butkevicius
de0fa70433
Merge branch 'master' into remove-date-var
5 years ago
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>
5 years ago
Sascha Grunert
7506b11da7
Add fish shell completion support
...
This commit adds a new method `ToFishCompletion` to the `*App` which can
be used to generate a fish completion string for the application.
Relates to: #351
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
5 years ago
Ajitem Sahasrabuddhe
2e0e39a03b
Merge pull request #845 from urfave/lint-fixes
...
linter fixes
5 years ago
Sascha Grunert
0d79d1d9d9
Remove unused `Date` variable from `cliTemplate`
...
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
5 years ago
Ajitem Sahasrabuddhe
aed704a9d0
Merge branch 'master' into lint-fixes
5 years ago
Audrius Butkevicius
946f918365
Merge pull request #735 from rliebz/combined
...
Add app-wide support for combining short flags
5 years ago
Ajitem Sahasrabuddhe
0990ca2391
Merge branch 'master' into lint-fixes
5 years ago
Ajitem Sahasrabuddhe
286133fee5
Merge branch 'master' into combined
5 years ago
Audrius Butkevicius
2c477e720e
Merge pull request #830 from saschagrunert/docs-gen
...
Add markdown and man page docs generation methods
5 years ago
Audrius Butkevicius
99fad61ded
Merge branch 'master' into docs-gen
5 years ago
Audrius Butkevicius
e0057bb597
Merge pull request #846 from urfave/asahasrabuddhe-patch-1
...
Update README.md
5 years ago
Audrius Butkevicius
815c29ffc7
Merge branch 'master' into combined
5 years ago
Ajitem Sahasrabuddhe
fd395786a2
Update README.md
...
remove quotes around coverage badge
5 years ago
Ajitem Sahasrabuddhe
fdba7e0f8c
linter fixes
...
code cleanup
changing some test code to ensure uniformity
5 years ago
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>
5 years ago
Audrius Butkevicius
521735b760
Merge pull request #844 from urfave/asahasrabuddhe-patch-1
...
Update README.md
5 years ago
Ajitem Sahasrabuddhe
22e1fc8419
Update README.md
...
add codecov.io badge
5 years ago
Ajitem Sahasrabuddhe
97179ca390
Merge pull request #843 from lafriks/patch-1
...
Support GoLang 1.10 to 1.12
5 years ago
Lauris BH
3a41d6d785
Lower support to GoLang compiler version 1.10
5 years ago
Ajitem Sahasrabuddhe
1f4473209d
Update .travis.yml
...
support go versions in line with go's release policy
5 years ago
Lauris BH
e3fa7e8566
Support also GoLang 1.11 compiler
5 years ago
Ajitem Sahasrabuddhe
b6f7dd9359
Merge pull request #836 from urfave/flag-type-generation-golang
...
Flag Generation in the CLI
5 years ago
Ajitem Sahasrabuddhe
e2de8c7458
update readme with correct error message, add 1.12 and 1.11 to travis
5 years ago
Robert Liebowitz
a77c440b84
Merge branch 'master' into combined
5 years ago