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
2526b57c56
Allow slightly longer lines in Python scripts
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
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
Jesse Szwedko
0bdeddeeb0
Merge pull request #569 from urfave/prepare-1-19-1
...
Prep 1.19.1
8 years ago
Jesse Szwedko
0ef6582154
Prep 1.19.1
8 years ago
Jesse Szwedko
3ba36a3127
Merge pull request #568 from kklipsch/master
...
Fix for #556 broke the api for users who were using the ActionFunc
8 years ago
Kasey Klipsch
8fa549846e
#556 broke the api for users who were using the ActionFunc
8 years ago
Jesse Szwedko
b6061c464d
Merge pull request #559 from joshuarubin/completion_fix
...
make shell autocomplete more robust
8 years ago
Jesse Szwedko
7fbcf2396a
Update date of 1.19.0 release in CHANGELOG
...
[ci skip]
8 years ago
Jesse Szwedko
a8fc36b690
Update CHANGELOG
8 years ago
Jesse Szwedko
6a87e37dff
Merge pull request #564 from urfave/altsrc-errorable-flag
...
Make ApplyWithError a public method on errorableFlag
8 years ago
Jesse Szwedko
d71794de19
Make ApplyWithError a public method on errorableFlag
...
Add to altsrc flags. Otherwise, flagSet() was bypassing altsrc's attempt
at shadowing.
8 years ago
Jesse Szwedko
8500a4cefd
Merge pull request #567 from drekar/errorable-flag-panic-fix
...
errorableFlag: scope result of type assertion.
8 years ago
Joshua Rubin
2da42640ad
Merge remote-tracking branch 'origin/master' into completion_fix
8 years ago
drekar
4661a59b20
errorableFlag: scope result of type assertion.
8 years ago
Joshua Rubin
3272baf434
add a test for shell completion using incomplete flags
8 years ago
Joshua Rubin
8dd1962f7b
change "complete" to "shellComplete"
8 years ago
Jesse Szwedko
b4f4786f37
Merge pull request #529 from urfave/prepare-v1.19.0
...
Prepare v1.19.0 release
8 years ago
Jesse Szwedko
dcdea39be2
Add additional entries to changelog for v.19.0 release
8 years ago
Jesse Szwedko
fa7ccb1447
Update changelog
8 years ago
Jesse Szwedko
4c2360f975
Prepare CHANGELOG for v1.19.0
8 years ago
Jesse Szwedko
de551c4450
Backport removal of deprecation warnings
...
#508
8 years ago
Jesse Szwedko
31b79c9a33
Merge pull request #530 from urfave/consider-empty-env-vars
...
Consider empty environment variables as set
8 years ago
Jesse Szwedko
b4a64dc08d
Add windows implementation of Clearenv for tests
...
Apparently `Clearenv` in Windows just sets the variables to ""
8 years ago
Jesse Szwedko
e367fafa3d
Return an error when parsing environment variables for values fails
...
Currently cli silently (aside from IntSlice and Int64Slice which oddly
printed directly to the error stream) ignores failures that occur when
parsing environment variables for their value for flags that define
environment variables. Instead, we should propogate up the error to the
user.
This is accomplished in a backwards compatible manner by adding a new,
internal, interface which defines an applyWithError function that all
flags here define. In v2, when we can modify the interface, we can drop
this secondary interface and modify `Apply` to return an error.
8 years ago
Jesse Szwedko
a00c3f5872
Consider empty environment variables as set
...
When assigning values to flags (also when interogatting via
`context.(Global)IsSet`.
For boolean flags, consider empty as `false`.
Using `syscall.Getenv` rather than `os.LookupEnv` in order to support
older Golang versions.
8 years ago
Jesse Szwedko
7a5dacbc41
Merge pull request #560 from mh-cbon/master
...
Close #558 : detect FormattedError and print their stack trace
8 years ago
mh-cbon
b0a8f25773
558: handle multi formatter errors
8 years ago