166 Commits (main)

Author SHA1 Message Date
Dan Buch c864c2425e
Merge pull request #1260 from dearchap/issue_1254
2 years ago
Naveen Gogineni 8c5f1fb359 Changes from code review
2 years ago
Naveen Gogineni 156d47e696 Fix: (issue#1254) short options handling needs to proceed from last terminated error
2 years ago
Tilo Prütz ca7f26ecb0 Uint64Flag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 1f621059d3 UintFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 889c7b5d7a TimestampFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 6b336c478f StringSliceFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz ce4d9279c4 StringFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 660184dd92 PathFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 6d7f859008 IntSliceFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz dcc47855b8 Int64SliceFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 18b44dfb29 Int64Flag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz bf18c00347 IntFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 8bd5fb2390 GenericFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 2f92fc644c Float64SliceFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 5047beb001 Float64Flag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz 9eae255aac DurationFlag.ValueFromContext() as convenient accessor
2 years ago
Tilo Prütz baf8ae98de BoolFlag.ValueFromContext() as convenient accessor
2 years ago
Dan Buch 9fd3cc92ad
Add tests around flag stringifying for all modified types
2 years ago
Dan Buch d83bb8d85e
Merge branch 'main' into remove_reflect
2 years ago
Dan Buch 826b3edd3f
Merge branch 'report_source_of_parse_errors' of ssh://github.com/mostynb/cli into mostynb-report_source_of_parse_errors
2 years ago
Ally Dale 58d113dd73
fix #1239: slice flag value don't append to default values from ENV or file (#1240)
3 years ago
Naveen Gogineni 7cd7ff7dd5 Remove reflect from flag_test
3 years ago
Robert Liebowitz ab52d6f3a9 Merge branch 'master' into ally_fix_default_val
3 years ago
David Bond f2bed637fd
Add Destination field to TimestampFlag
3 years ago
Ally Dale ef9430e77e fix #1238: accept multi-value input on sclice flags
3 years ago
AllyDale c98b85d392 bug fix #1235 : default value changes with parsed values on slice flags
3 years ago
Robert Liebowitz 795a8adacb
Merge pull request #1208 from Madhur1997/master
3 years ago
Andrew Nicoll 06e7bdec34 add test for nil
3 years ago
Andrew Nicoll ebe2c0ea70 add for int64
3 years ago
Andrew Nicoll 02f3866db2 add nother test
3 years ago
Andrew Nicoll 55992853bf add flag tests
3 years ago
Madhur batra ea14b62ecc Issue #1066: Display `(accepts multiple inputs)` for SliceFlags in the
4 years ago
Mostyn Bramley-Moore 500d6b04e6 Report the source of a value when we cannot parse it
4 years ago
Alex Couture-Beil 2ae03fa69c bugfix: don't overwrite existing stringslice refence
4 years ago
Vinicius Schettino 54fbe0a445 Basic test case to check if Value is propagated as it should
4 years ago
Sergey Goroshko 196b222a8b fix #1121(StringSliceFlag set default value into destination)
4 years ago
Mostyn Bramley-Moore 4853dd3144 Reset the environment variables after each test that clears them
4 years ago
Mostyn Bramley-Moore 8d907b5329 Save the temp dir before clearing environment variables
4 years ago
davidsbond e19b1565a8 Allow specifying a StringSlice destination for StringSliceFlag
4 years ago
Dmitry Kutakov d7e6dde41e
goimports - fix code format
4 years ago
Dmitry Kutakov 94a1912e25
reduce stdout logs in tests
4 years ago
Martin Lees d2b7f68cf3 Add more tests
4 years ago
Martin Lees 76ebb62d02 fix flagTests loop
4 years ago
Martin Lees 06eb576eaa Review fixes
5 years ago
Jim Powers 5dafdb1de6 Exposed the `value` accessor in `Context`
5 years ago
Ajitem Sahasrabuddhe a9d5b68df5
Merge branch 'master' into v2-master-merge
5 years ago
Ajitem Sahasrabuddhe b161244b73
Merge latest master into v2-merge-master
5 years ago
Ajitem Sahasrabuddhe d870ad6ccb
Fix all tests
5 years ago
Ajitem Sahasrabuddhe 2024bed22a
Fix test cases for context, docs, errors, fish, flags and funcs
5 years ago
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