40 Commits (c75fee9224817c00f1e2630c31aa5686a70f5fb8)

Author SHA1 Message Date
Ajitem Sahasrabuddhe c75fee9224
Merge master @1.22.1 with v2
5 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
Gregor Noczinski 01fdb2cca9 #315 fixed typo
8 years ago
Gregor Noczinski f90cd56647 Handle Before and After of Command without handling it as subCommand if there is no subCommand.
9 years ago
Håvard Haugen 7b94fd3aad test: avoid output from "go test" when tests pass
9 years ago
Nathan LeClaire 3323ab4460 Use a test table and add --help test
9 years ago
Jesse Szwedko 8cd49b108c Update TestCommandIgnoreFlagsIncludingFirstArgument to test for arguments
9 years ago
Nathan LeClaire c538c376c9 Do not return error when flag parsing should be skipped
9 years ago
Emil Thelin a9585bb11c Added a flag for TestCommandIgnoreFlags
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
Fabian Ruff 65d50017d4 search context hierachy for global flags
9 years ago
jszwedko bf65971a6a Add `Command.Aliases` and deprecate `Command.ShortName`
9 years ago
Josh Mervine 089def51d8 Tweaking tests, removing local import.
10 years ago
Josh Mervine 8f55ca83ff running go fmt
10 years ago
Josh Mervine 7ca86444e8 making all pathing for cli local in tests for easier fork testing
10 years ago
Dan Wendorf and Karen Wang 6c5f810d8f Add SkipFlagParsing option to Command
10 years ago
Jeremy Saenz ed1ee94250 Adding some docs
11 years ago
Jeremy Saenz 5bb6efd8bd JMS #4: Fixed compile error
11 years ago
Jeremy Saenz 393a533b66 JMS #4: Removing tests from command_test
11 years ago
Jeremy Saenz 3119b075d6 JMS #4: Flag testing
11 years ago
Jeremy Saenz 3f76896c4f JMS #4: Getting some cli tests going. Testing out flags
11 years ago