65 Commits (main)

Author SHA1 Message Date
torwang 3005438a1f fix: Context.Set no such flag
2 years ago
Ilia Choly ca9df40abd
Add App.InvalidFlagAccessHandler (#1446)
2 years ago
Gerrard-YNWA b98c059269
fix: allow required flag with one character (#1449)
2 years ago
badcw e855c4cd1d
fix: Nil pointer when getting context's flagSet(#1325) (#1327)
2 years ago
Naveen Gogineni 07e1fdf17d Cleanup context.go
3 years ago
Joe Gregorio d56c85cef5 Add test for the else path.
3 years ago
Joe Gregorio b8debb6845 Fix Context.Value.
3 years ago
Ole Petter 48392103ce
test(context): Change the StringSliceFlag to a pointer
4 years ago
Ole Petter 710c8f71c4
test(context): Added regression test for requiredFlagsError
4 years ago
Mostyn Bramley-Moore 4853dd3144 Reset the environment variables after each test that clears them
4 years ago
Lynn Cyrin 9eb7426ac3
add a fix
4 years ago
Lynn Cyrin 1651eec7b8
add a fix
4 years ago
Lynn Cyrin b62c6419cb
new tests
4 years ago
Lynn Cyrin b44b656820
failing test
4 years ago
Jim Powers 615e70ef22 Rebased upstream - Fixed NPE
5 years ago
Ajitem Sahasrabuddhe b161244b73
Merge latest master into v2-merge-master
5 years ago
Ajitem Sahasrabuddhe ef1ba861f7
add is set method to flag interface - refer #294
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
marwan-at-work c8863d0b30 PR updates
5 years ago
marwan-at-work 98e64f4507 add propagation tests
5 years ago
Vladislav Mitov 0b665e6170 Add PathFlag
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 9073334ecd Fix context.IsSet()
7 years ago
Péter Szilágyi acc622e5fb
Invalidate context.setFlags cache on modification.
7 years ago
Jesse Szwedko b4a64dc08d Add windows implementation of Clearenv for tests
8 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
Jesse Szwedko 6c1f51aa95 Fix context.(Global)IsSet to respect environment variables
8 years ago
Dan Buch ca2a0f72bf
Ensure context lookups traverse lineage
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
Dan Buch 537f5beb66
Tweaks to Int64Flag PR
8 years ago
Bruno França dos Reis 80d3d863d9 Adding Int64 and GlobalInt64 in context, plus related tests
8 years ago
Dan Buch cd10b49473
Minimize struct copying
8 years ago
Dan Buch f2d5ed9933
Replace BoolTFlag type with BoolFlag.Value
8 years ago
Dan Buch c720f37e15
Context tests and tweaks around lineage traversal
8 years ago
Dan Buch bef835d455
Remove all Context.Global* methods
8 years ago
Matt Farina 2f4ec31264 Fixed spelling and gofmt issues
8 years ago
Jesse Szwedko e3ace79a91 Add GlobalBoolT
8 years ago
Dan Buch e059dc8188
Implement *Context.GlobalSet + relevant CHANGELOG entry
8 years ago
Dan Buch 4edb5c9a6b
Merge branch 'bryanl-set-context-values' of https://github.com/bryanl/cli into bryanl-bryanl-set-context-values
8 years ago
Dan Buch 4cae17cfe1
Ensure MultiError returned when both Before and After funcs given
8 years ago
Dan Buch 61d4175525
Merge remote-tracking branch 'origin/master' into txgruppi-develop
8 years ago
Dan Buch 2c0e13ecf8
Revising/adding tests that assert order of operations inside App.Run
8 years ago
Dan Buch bd0f13d022
Add Context.GlobalFloat64 plus tests
8 years ago
Omer Murat Yildirim 802f64479d Add NArg method to context structure
8 years ago
Edward Sheffler III 8ea1232ede Improve vendoring options by removing self-referential imports in tests.
9 years ago
bryanl a3b93076ff Allow context value to be set after parse
9 years ago