102 Commits (3a87b13b01ac8628694f1e1b20bdb452cc0f54d2)

Author SHA1 Message Date
Nico Windler 3a87b13b01 Fix args reordering when bool flags are present
6 years ago
Tyler Davis 40263f4d6a Merge branch 'master' into master
7 years ago
Sebastian Sprenger c3cc74dac7 fix ineffective assigns
7 years ago
Tyler Davis 5d528e2052 use exit errors in uts
7 years ago
Tyler Davis 58450552ee Add Test
7 years ago
Joe Richey joerichey@google.com 1794792adf Add ability to use custom Flag types
7 years ago
Kasey Klipsch 8fa549846e #556 broke the api for users who were using the ActionFunc
8 years ago
Joshua Rubin 2da42640ad
Merge remote-tracking branch 'origin/master' into completion_fix
8 years ago
Joshua Rubin 3272baf434
add a test for shell completion using incomplete flags
8 years ago
Jesse Szwedko e367fafa3d Return an error when parsing environment variables for values fails
8 years ago
Jesse Szwedko 0113f56d10 If no action is specified on the command or app, print the help documentation
8 years ago
Jesse Szwedko b377b5d9e9 Use type assertions rather than reflection to determine how to call the `Action`
8 years ago
Jesse Szwedko 61db37e7ae Merge branch 'master' into default-writer
8 years ago
Jesse Szwedko f614c177b7 Merge pull request #543 from wking/app-description
8 years ago
W. Trevor King 3c2bce5807 help: Cleanup AppHelpTemplate trailing whitespace
8 years ago
Richard Kovacs 4cc2bad36e Display error instead of just say command is incorrect
8 years ago
Jesse Szwedko 508a23430b Default app.Writer to os.Stdout
8 years ago
Dan Buch dd253d122c
Write err to stderr, exit 1 if err != ""
8 years ago
Jesse Szwedko 65da20beab Correctly show help message if `-h` is provided to subcommand
8 years ago
Dan Buch 3c5afd4757
Hide help command for category tests
8 years ago
Dan Buch 5a3515fdf8
Focus on catching fewer panics in HandleAction
8 years ago
Matt Farina 2f4ec31264 Fixed spelling and gofmt issues
8 years ago
Dan Buch dfa9a87bee
Add tests for App.VisibleCategories & App.VisibleCommands
8 years ago
Dan Buch cc481d6b0e
Adjust command hiding to use similar convention as hidden flags
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 b453bf5940
Clarifying errors returned from HandleAction + tests
8 years ago
Dan Buch b7329f4968
Switch from multi-return with exit codes to ExitCoder check
8 years ago
Dan Buch 10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
8 years ago
Jesse Szwedko 042842b819 Remove CategorizedHelp from App and allow subcommands to have categories
8 years ago
Soulou d0997e8f99 Set Categories as a read-only method and fix tests
8 years ago
adamclerk cde8418658 Fixes spelling issues and import alphabetical issues
8 years ago
Jesse Szwedko d5f087da9d Merge pull request #289 from KSubedi/master
8 years ago
Gregor Noczinski c462071a52 * Added ability to customize usage error messages
8 years ago
Andreas Kupries bb4e78eb6a Fixed mishandling of a "-"(dash)-argument causing reordering of cli non-flag arguments.
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
Jesse Szwedko 4fc241fb17 Update examples to use correct naming convention
9 years ago
Kaushal Subedi c70ad9b688 fixed tests
9 years ago
Tristan Zajonc c7aac252f1 add tests
9 years ago
Tristan Zajonc aced6e8739 fix tests
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
Brian Goff 758ad1e836 Sets a subcommand's parent cmd
9 years ago
Fabian Ruff a2d4ae5939 Fix global flags processing on top level
9 years ago
Dan Buch 4407569431 Merge branch 'master' into fix-231
9 years ago
Jesse Szwedko 55b8924c2b Merge pull request #230 from codegangsta/do-not-swallow-after-error
9 years ago
Jesse Szwedko 2272dad83e Version and help check should look for local flags too
9 years ago
Jesse Szwedko 854c52192c Merge pull request #227 from databus23/global-flags-from-all-parents
9 years ago