74 Commits (61c3eb6ba1da1df17cd50f1456a9252d92bf5edd)

Author SHA1 Message Date
Jesse Szwedko 9073334ecd Fix context.IsSet()
7 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
Brian Goff 15e6b2fcc7 Add func to get context parent
9 years ago
bryanl a3b93076ff Allow context value to be set after parse
9 years ago
Fabian Ruff 65d50017d4 search context hierachy for global flags
9 years ago
Ravi Gadde bcec9b08c7 Added an API and test case for number of flags set
9 years ago
Jeremy Saenz 0cd0f1a3ae Merge pull request #143 from artnez/master
10 years ago
Jesse Howarth b490b5e35d Add a function to determine if a global flag is set.
10 years ago
Artem Nezvigin 6db418e461 Add Context.GlobalFlagNames()
10 years ago
Ghislain Gt 98af61a59f Add time.Duration flag type
10 years ago
Jeremy Saenz c7ff3bf705 Merge pull request #95 from artnez/master
10 years ago
Audrius Butkevicius 6f8cfa703a Add Args.Swap command for swapping arguments
10 years ago
Artem Nezvigin 71e3acacd2 Add FlagNames() method to Context
10 years ago
Jeremy Saenz bb9189510a Merge pull request #81 from zenoss/upstream/feature/generic-flags
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
Chris Winslett c69522c960 Make Command accessible from Context
10 years ago
Yicheng Qin ce13660ae0 fix(context): copy StringSlice Flag correctly
10 years ago