70 Commits (main)

Author SHA1 Message Date
devinnwang ba96587f56 Fix:(issue_1548) Check root before run default cmd
2 years ago
Naveen Gogineni 59095aa762 make cmd.Run use varargs
2 years ago
Naveen Gogineni bc9ae33465 Merge latest and fix tests
2 years ago
Naveen Gogineni d5947d7814 Initial cut
2 years ago
Naveen Gogineni 8227be1fe9 Add tests for command.VisibleFlagCategory
2 years ago
Naveen Gogineni d5a1252ef3 Add test coverage for Command.VisibleCommands()
2 years ago
Dan Buch 9ce946162f
Unshadow `context` package
2 years ago
Irioth ef2d047c45 added test for successfully used -v flag on command with subcommands
4 years ago
Irioth 1f3e0b5233 make test more general and stable
4 years ago
Irioth 44371a2ac6 test for version flag on commands
4 years ago
Dmitry Kutakov 94a1912e25
reduce stdout logs in tests
4 years ago
Roberto Hidalgo 90a62d7b0c
Prevent panic on flagSet access from custom BashComplete
5 years ago
Lynn Cyrin 434d6cba03 remove old tests
5 years ago
Lynn Cyrin c8c0a048fb Merge remote-tracking branch 'origin' into v2-master-merge
5 years ago
Ajitem Sahasrabuddhe b776c20ef3
Merge branch 'master' into v2-master-merge
5 years ago
lynn (they) c30b1cf90b
Merge branch 'master' into pass-through-regression
5 years ago
Robert Liebowitz df740f6562 Fix infinite loop flag parsing with short options
5 years ago
Robert Liebowitz 7d46b6d7f1
Avoid panic for missing flag value
5 years ago
Ajitem Sahasrabuddhe b161244b73
Merge latest master into v2-merge-master
5 years ago
Lynn Cyrin (they/them) 41eb645fa2
Merge branch 'master' into pass-through-regression
5 years ago
Ajitem Sahasrabuddhe f29d98aa2d
Make command tests pass
5 years ago
Robert Liebowitz 06e3d38d88 Avoid panic for missing flag value
5 years ago
Ajitem Sahasrabuddhe c75fee9224
Merge master @1.22.1 with v2
5 years ago
Lynn Cyrin 223e21796c
swap a test case
5 years ago
Ajitem Sahasrabuddhe fdba7e0f8c
linter fixes
5 years ago
Valentin Rothberg 3e5a935ed3 fix `go vet` warning
6 years ago
Valentin Rothberg c23dfba701 short opt handling: fix parsing
6 years ago
Jesse Szwedko e38e4ae2d0 Fix regression of SkipFlagParsing behavior
6 years ago
Jesse Szwedko 0671b166dc Add tests for flag reordering
7 years ago
baude ceaac7c915 Handle ShortOptions and SkipArgReorder
7 years ago
baude fd5382e7a5 Combine bool short names
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
Joe Richey joerichey@google.com 291122b8f0 Subcommand OnUsageError should be passed to app
7 years ago
Jesse Szwedko 87fe13079e Rely on Command context in Run()
7 years ago
Robert Bittle 4ed366e201
Pass the ErrWriter on the root app to subcommands
7 years ago
Jesse Szwedko 83497d2cda Merge remote-tracking branch 'origin/master' into v2-merge
8 years ago
Frances Bar 3df4b71842 Backport no argument reordering as an option
8 years ago
Dan Buch f7b2b93ffa
Merge remote-tracking branch 'origin/v1' into merging-from-v1
8 years ago
Radek Simko bef215fe3e app: Allocate Metadata map automatically
8 years ago
Dan Buch df685fbacc
Remove `NewApp` initializer
8 years ago
Dan Buch cd10b49473
Minimize struct copying
8 years ago
Dan Buch 32ebecfbb5
Merge remote-tracking branch 'origin/master' into v2
8 years ago
Matt Farina 2f4ec31264 Fixed spelling and gofmt issues
8 years ago
Jesse Szwedko f585ec7cb8 Remove reordering of flags and arguments
8 years ago
Dan Buch b7329f4968
Switch from multi-return with exit codes to ExitCoder check
8 years ago
Dan Buch a17c8cf1d8
Rename func type suffixes `Fn`->`Func` and add `OnUsageErrorFunc`
8 years ago
Dan Buch 10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
8 years ago
Gregor Noczinski c462071a52 * Added ability to customize usage error messages
8 years ago
leonardyp 6f6e8caf6c Repeat context statement because of a is a pointer
8 years ago