Harshavardhana
dd3849a7e6
Add tests as requested.
7 years ago
Harshavardhana
baa33cb888
Add support for ExtraInfo.
7 years ago
Harshavardhana
f7d6a07f2d
Add support for custom help templates.
7 years ago
Joe Richey joerichey@google.com
1794792adf
Add ability to use custom Flag types
...
Users can now use custom flags types (conforming to the Flag interface)
in their applications. They can also use custom flags for the three
global flags (Help, Version, bash completion).
7 years ago
Jesse Szwedko
d70f47eeca
Merge pull request #627 from urfave/use-command-context-in-usage-error
...
Rely on Command context in Run()
7 years ago
Jesse Szwedko
87fe13079e
Rely on Command context in Run()
...
Was previously relying on the parent context which caused things like
`.Command` to not be available to OnUsageError().
Fixes #609
8 years ago
Jesse Szwedko
61c3eb6ba1
Merge pull request #597 from urfave/fix-isset-for-env
...
Fix context.IsSet()
8 years ago
Jesse Szwedko
ab403a54a1
Merge pull request #616 from tbaud0n/master
...
Fix autocomplete issue when multiple apps run autocomplete from etc/bash_completion.d directory
8 years ago
Jesse Szwedko
d3793766a3
Merge branch 'master' into master
8 years ago
Jesse Szwedko
f6e8084112
Merge remote-tracking branch 'origin/master' into v1
8 years ago
Jesse Szwedko
924042785a
Merge pull request #624 from urfave/fetch-needed-commands
...
Explicitly fetch `goimports`
8 years ago
Jesse Szwedko
1bf0bb96b7
Only support supported Go versions
...
As described on https://github.com/golang/go/wiki/Go-Release-Cycle
The maintainers do not test compatibility for libraries (e.g. in
golang.org/x/tools) on older versions.
8 years ago
Jesse Szwedko
572dc46db5
Explicitly fetch `goimports`
...
Fetching the whole tree was failing on some Go versions and we really
only need goimports.
8 years ago
Jesse Szwedko
922e3e2cea
Merge pull request #615 from uudashr/v2
...
Remove the error return signature
8 years ago
Tony
b9c5353920
Unset PROG variable to fix issue when mulitple apps run autocomplete from etc/bash_completion.d directory
8 years ago
Nuruddin Ashr
8b9345ec9d
Remove the error return signature
8 years ago
Jesse Szwedko
8ba6f23b6e
Merge pull request #582 from urfave/fix-altsrc-slice-inputs
...
Fix altsrc slice inputs so that they correctly parse
8 years ago
Jesse Szwedko
beddedeabd
Merge branch 'master' into fix-altsrc-slice-inputs
8 years ago
Jesse Szwedko
9e5b04886c
Remove logic that exited even if the error was not an OsExiter
...
This was introduced in #496 , but was discovered to be a regression in
the behavior of the library.
8 years ago
Jesse Szwedko
8d8f927bcb
Change flag test error checking to use regexp rather than strings
...
As the error messages changed in 1.8
8 years ago
Jesse Szwedko
9073334ecd
Fix context.IsSet()
...
Accidentally mangled the implementation when merging master into the
`v2` branch resulting in a dropped test.
8 years ago
Jesse Szwedko
04b2f4ff79
Adjust spacing in cli-v1-to-v2 to satisfy flake8
8 years ago
Jesse Szwedko
230bac34b7
Allow slightly longer lines in Python scripts
8 years ago
Jesse Szwedko
2526b57c56
Allow slightly longer lines in Python scripts
8 years ago
John Weldon
6a70c4cc92
Add JSON InputSource to altsrc package
...
- Implement NewJSONSource* functions for returning an InputSource from
various JSON data sources.
- Copy and modify YAML tests for the JSON InputSource
Changes:
* Reverted the method calls and structs to match the v1 interface
8 years ago
Jesse Szwedko
347a9884a8
Merge pull request #589 from josephlr/subcommand-structure
...
Subcommand structure should be correctly passed to application
8 years ago
Jesse Szwedko
9913f0cef2
Merge branch 'master' into subcommand-structure
8 years ago
Jesse Szwedko
1d38670e45
Merge pull request #587 from guywithnose/master
...
Pass the ErrWriter on the root app to subcommands
8 years ago
Joe Richey
e109e81e6a
Subcommand structure should be correctly copied to main structure
8 years ago
Robert Bittle
4ed366e201
Pass the ErrWriter on the root app to subcommands
8 years ago
Jesse Szwedko
e87dfbb6bb
altsrc: Support slices for TOML
8 years ago
Jesse Szwedko
f8347a97c6
Fix altsrc slice inputs so that they correctly parse
...
Was previously attempting to cast directly from []interface{} to
[]string or []int which Go doesn't support. Instead, we iterate over and
cast each value (error'ing if the value is not the correct format).
Fixes #580
8 years ago
Antonio Fdez
f1be59ff3d
added comment to windows filePath check
8 years ago
Antonio Fdez
341ca93b01
fix imports
...
Sorry, forgot to add imports correctly, needed to edit the file and make the commit using the github online editor, since I can't access from my current location from git.
8 years ago
Antonio Fdez
7b912d9f8f
allow to load YAML configuration files on Windows
...
The funtion `loadDataFrom` does not take care of Windows users since any of the conditions met and it returns an error.
The change looks for the runtime where it's running and then if the filePath contains a `\`
8 years ago
Jesse Szwedko
56a7254df4
Merge pull request #540 from hirose31/fix/handle-multierror
...
Call HandleExitCoder for all members of MultiError.Errors
8 years ago
HIROSE Masaaki
adec15acf5
Add another ExitCoder to assert that it uses last one
8 years ago
HIROSE Masaaki
286b4b56d9
Document on exit code in case of MultiError is given
8 years ago
HIROSE Masaaki
71ced406af
Treat `rc` first called as exit code
...
Because default OsExiter is os.Exit.
8 years ago
hirose31
70a2c94089
Merge branch 'master' into fix/handle-multierror
8 years ago
Péter Szilágyi
acc622e5fb
Invalidate context.setFlags cache on modification.
8 years ago
Jesse Szwedko
8ef3805c9d
Merge pull request #575 from MaximilianMeister/command-ordering
...
command: enable ordering commands by name
8 years ago
Joe Richey
0083ae8732
Usage/Description/ArgsUsage correctly copied when using subcommand
8 years ago
Maximilian Meister
ac772237b9
command: enable ordering commands by name
8 years ago
Jesse Szwedko
8f6a3675e1
Merge pull request #581 from appleboy/patch-2
...
[ci skip] fix template syntax error
8 years ago
Bo-Yi Wu
4267cd827c
[ci skip] Fix template syntax error
8 years ago
Dan Buch
7250c97913
Merge branch 'master' into merging-jereksel-zsh
8 years ago
Jesse Szwedko
4401a6ca20
Merge pull request #566 from fernandezvara/v1
...
allow to load YAML configuration files on Windows
8 years ago
Jesse Szwedko
6752c11c1c
Merge branch 'v1' into v1
8 years ago
Jesse Szwedko
0bdeddeeb0
Merge pull request #569 from urfave/prepare-1-19-1
...
Prep 1.19.1
8 years ago