166 Commits (main)

Author SHA1 Message Date
Ajitem Sahasrabuddhe c75fee9224
Merge master @1.22.1 with v2
5 years ago
Ajitem Sahasrabuddhe fdba7e0f8c
linter fixes
5 years ago
baude fd5382e7a5 Combine bool short names
7 years ago
Jacob McCann f971fca2b2 Allow FilePath to take []string
7 years ago
Brad Rydzewski 18a556e192 fix FilePath documentation in README.md
7 years ago
Brad Rydzewski c698b821b8 unit tests for load from file
7 years ago
Brad Rydzewski 21fcab0dee ability to load variable from file
7 years ago
Vladislav Mitov 0b665e6170 Add PathFlag
7 years ago
Robert Liebowitz cbbe4c1a2c Add tests for custom flag prefix/env hints
7 years ago
Dan Buch 65b801c818
Resolve remaining test errors for v1 => v2 merge
7 years ago
Dan Buch 47a412375f
Resolved compile-time errors since merging from v1
7 years ago
Dan Buch a61867e5e6
Merge remote-tracking branch 'origin/v1' into merging-from-v1
7 years ago
Jesse Szwedko 8d8f927bcb Change flag test error checking to use regexp rather than strings
7 years ago
Jesse Szwedko e367fafa3d Return an error when parsing environment variables for values fails
8 years ago
Jesse Szwedko a00c3f5872 Consider empty environment variables as set
8 years ago
Jake Champlin 7d56512ecc
Add documentation, remove quotes by default
8 years ago
Jake Champlin e0556cf9e8
Add DefaultValue text for flags
8 years ago
Bruno França dos Reis 028af4bc35 adding support for Float64SliceFlag
8 years ago
Dan Buch 0c9b549918
Ensure remaining v1 additions are v2 compatible
8 years ago
Dan Buch 6c628a1a88
Merge remote-tracking branch 'origin/v1' into merging-from-v1
8 years ago
Dan Buch a0e694ed72
Add UintFlag, Uint64Flag types and supporting code
8 years ago
Bruno França dos Reis 5c7cca7f16 Adding Int64Slice related stuff in flag.go and context.go, and related tests
8 years ago
Bruno França dos Reis 4962423cba Adding Int64Flag type and related tests
8 years ago
Dan Buch 3b03164c92 Merge branch 'v2' into show-bool-default
8 years ago
Dan Buch c70993dbc5 Merge branch 'v2' into minimize-struct-copying
8 years ago
Dan Buch 8f25dbb615
Ensure all flag aliases are set when Destination given
8 years ago
Dan Buch cd10b49473
Minimize struct copying
8 years ago
Dan Buch 81fcf706ea
Replace all "stringly typed" fields with slice equivalents
8 years ago
Dan Buch fac67ac91a
Show BoolFlag default value in help usage
8 years ago
Dan Buch 9c132d990a
Add more tests for BoolFlag{Value: true}
8 years ago
Dan Buch f2d5ed9933
Replace BoolTFlag type with BoolFlag.Value
8 years ago
Dan Buch c19dbaf230
Remove deprecated things and supporting code
8 years ago
Dan Buch a1e5328e30
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160
8 years ago
Dan Buch 69a8e25f3d
Make flag usage rendering more consistent; show default values
8 years ago
Dan Buch 22773b14c1
Allow for pluggable flag-level help text formatting
8 years ago
Dan Buch 1fb52b3bce
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160
8 years ago
Dan Buch 1a91f3dce5
Ensure IntSlice & StringSlice serialization works as expected
8 years ago
Dan Buch 64de53e639
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160
8 years ago
Dan Buch 23c7b807a7
Merge remote-tracking branch 'origin/master' into txgruppi-develop
8 years ago
Dan Buch b7329f4968
Switch from multi-return with exit codes to ExitCoder check
8 years ago
Dan Buch 10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
8 years ago
Kevin Cantwell 13b7eedc13 Parses usage placeholders via back quotes. Resolves #333
8 years ago
Dan Buch cb433e7468 Use NewIntSlice and NewStringSlice internally
8 years ago
Dan Buch 867aa0912d Overwrite slice flag defaults when set
8 years ago
Gregor Noczinski 82ddbd9a07 * Improve GenericFlag.String() by suppressing empty "" for GenericFlags on nil or empty Generic.String()
8 years ago
ston1th 25ef368235 added destination scan testing and BoolT
9 years ago
Tarcísio Gruppi 1510d7e722
Updated tests to support exit code
9 years ago
Edward Sheffler III 8ea1232ede Improve vendoring options by removing self-referential imports in tests.
9 years ago
jszwedko 059c02782a Use double quotes in output for defaults
9 years ago
jszwedko 22dbe6ffdc Fix help text for generic flag to not insinuate that you can specify multiple
9 years ago
Dan Buch 78d497e4cf Adding support for multiple env var "cascade"
10 years ago
Ghislain Gt 98af61a59f Add time.Duration flag type
10 years ago
Dan Buch 48869e13a4 Addressing `go vet` offenses
10 years ago
Dan Buch fc16c67be3 Updating structs to use labels, adding tests for env stuff
10 years ago
Summer Mousa 1eaa882c3a removed extranneous value method on the generic type
10 years ago
Summer Mousa 13e88629f5 Generic parsers as flag types
10 years ago
Ryan Schmukler 312151dca4 remove quotes for empty StringFlags
10 years ago
Yicheng Qin ce13660ae0 fix(context): copy StringSlice Flag correctly
10 years ago
Katrina Owen 2ec51afe91 Implement Float64Flag. See #46
11 years ago
Jeremy Saenz 806cdc2890 removed dead test
11 years ago
Jeremy Saenz ab6f1b7c3c Formatting
11 years ago
Jared Forsyth dc8a62e0e9 refactor, more robust flag propagation
11 years ago
Jared Forsyth 73e88630a5 fmt
11 years ago
Jared Forsyth ccb1528bb0 adding multi-named flags
11 years ago
Jeremy Saenz 0d3c3f4497 Improved documentation
11 years ago
Mike Gehard 1a1d6bd163 Vary flag prefix based on name length
11 years ago