90 Commits (ef1ba861f79e79c12b58afc4e5c870fe28d44452)

Author SHA1 Message Date
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 1f7d1684b8 fix nil check
5 years ago
marwan-at-work cee005ee62 only create context once
5 years ago
marwan-at-work 820040ec28 add context.Context to cli.Context
5 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 9073334ecd Fix context.IsSet()
7 years ago
Péter Szilágyi acc622e5fb
Invalidate context.setFlags cache on modification.
7 years ago
Joshua Rubin 2da42640ad
Merge remote-tracking branch 'origin/master' into completion_fix
8 years ago
Joshua Rubin 8dd1962f7b
change "complete" to "shellComplete"
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
Joshua Rubin ea3df26e64
make shell autocomplete more robust
8 years ago
Jesse Szwedko 83497d2cda Merge remote-tracking branch 'origin/master' into v2-merge
8 years ago
Jesse Szwedko e7b1833f53 Dereference `Flag`s if they are pointers
8 years ago
Jesse Szwedko 168c95418e Ensure that EnvVar struct field exists before interrogating it
8 years ago
Jesse Szwedko 6c1f51aa95 Fix context.(Global)IsSet to respect environment variables
8 years ago
Dan Buch f7b2b93ffa
Merge remote-tracking branch 'origin/v1' into merging-from-v1
8 years ago
Dan Buch 77f1130e65
Generate flag type lookup funcs
8 years ago
Bruno França dos Reis 028af4bc35 adding support for Float64SliceFlag
8 years ago
Dan Buch 6185b8d8fd
Generate code for flag types and context accessors
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 80d3d863d9 Adding Int64 and GlobalInt64 in context, plus related tests
8 years ago
Dan Buch 3d75e9e711
Go with interfaces + private opaque types
8 years ago
Dan Buch 61710ff108
Make slice wrapping pattern more consistent
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 f2d5ed9933
Replace BoolTFlag type with BoolFlag.Value
8 years ago
Dan Buch 7318e27528
Tidy up the flag name visitor func in Context
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
Dan Buch 32ebecfbb5
Merge remote-tracking branch 'origin/master' into v2
8 years ago
Matt Farina 2f110bd745 Cleaned up exported func comments per golint
8 years ago
Dan Buch bac790c819
Merge remote-tracking branch 'origin/master' into v2
8 years ago
Jesse Szwedko e3ace79a91 Add GlobalBoolT
8 years ago
Dan Buch 1fb52b3bce
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160
8 years ago
Dan Buch f3b589e892
Remove unreachable code
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 d1b0c49a98
Ensure slice types can safely round-trip through flag.FlagSet
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
Jille Timmermans f101a00018 Export cli.Flag.GetName (previously cli.Flag.getName)
9 years ago
Fabian Ruff a2d4ae5939 Fix global flags processing on top level
9 years ago