189 Commits (b0e816007624e5aedc90ea081dec875689cf5e86)

Author SHA1 Message Date
Dan Buch cd10b49473
Minimize struct copying
8 years ago
Dan Buch c19dbaf230
Remove deprecated things and supporting code
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
Dan Buch bac790c819
Merge remote-tracking branch 'origin/master' into v2
8 years ago
Dan Buch dfa9a87bee
Add tests for App.VisibleCategories & App.VisibleCommands
8 years ago
Jesse Szwedko f585ec7cb8 Remove reordering of flags and arguments
8 years ago
Dan Buch cc481d6b0e
Adjust command hiding to use similar convention as hidden flags
8 years ago
Dan Buch 1fb52b3bce
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160
8 years ago
Dan Buch 4cae17cfe1
Ensure MultiError returned when both Before and After funcs given
8 years ago
Dan Buch ee736e063a
Merge remote-tracking branch 'origin/master' into string-slice-flag-default-160
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
Dan Buch cb433e7468 Use NewIntSlice and NewStringSlice internally
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
Jesse Szwedko 7ed7a51f86 Aggregate errors from Before/After
9 years ago
Sergey Romanov f47f7b7e85 Fix panic if Valus in Int/StringSliceFlasg is missing
9 years ago
Fabian Ruff 65d50017d4 search context hierachy for global flags
9 years ago
jszwedko b8104e5da7 Set writer when running command as app
9 years ago
jszwedko e842547421 Readd printHelp function back
9 years ago
jszwedko daad50e530 Turns out I didn't mean to add ExampleAppCommands at all
9 years ago
jszwedko 474646abed Didn't mean to remove ExampleAppSubcommand
9 years ago
jszwedko bf65971a6a Add `Command.Aliases` and deprecate `Command.ShortName`
9 years ago
jszwedko 01cdaa065a Merge remote-tracking branch 'origin/master' into add-multi-author-support
9 years ago
Harrison c6592bb487 app, help: add backwards compatibility for Authors
9 years ago
Jesse Szwedko 532d0bc2e3 Merge pull request #151 from imdario/master
9 years ago
Harrison 05ecd63a95 app_test: prepare for PR
9 years ago
Harrison 3d7183307a app, help: add support for multiple authors
9 years ago
Dario Castañé 4e3a83b43e Merge branch 'master' of https://github.com/codegangsta/cli
10 years ago
jszwedko 5159b98cbc Use parsed context when running command as subcommnd
10 years ago
Jesse Szwedko bf4a526f48 Merge pull request #157 from dajulia3/pull_request
10 years ago
Dan Buch 5b9e204508 Merge pull request #153 from codegangsta/allow-hiding-of-help-flag
10 years ago
Matthew McNew d05d895492 stop flag parsing after terminator --
10 years ago
jszwedko 69b84ea804 Renaming fakeWriter to mockWriter for consistency
10 years ago
jszwedko b8c8282de5 Merge remote-tracking branch 'origin/master' into allow-writer-to-be-set
10 years ago
jszwedko 0d4870d63e Rename Stdout -> Writer
10 years ago
jszwedko 780f839a02 Allow hiding of help flag without hiding help subcommand
10 years ago
Dario Castañé ba22f2189a Changing back cli import in app_test.go
10 years ago
Dario Castañé 3c4b583fee Action error shadowing avoided on After
10 years ago
Dario Castañé 44efc2952d Added Before method to command and app
10 years ago
Josh Mervine 089def51d8 Tweaking tests, removing local import.
10 years ago
Josh Mervine 120f0688a4 Merge remote-tracking branch 'parent/master'
10 years ago
Dan Buch e8939d2aa0 Merge remote-tracking branch 'origin/master' into env-config-fun
10 years ago
Audrius Butkevicius 9e036e08f1 Fix tests
10 years ago
jszwedko bcfb32b8b0 Updating tests to pass `go vet`
10 years ago
Dan Buch fc16c67be3 Updating structs to use labels, adding tests for env stuff
10 years ago
Philippe Lafoucrière df5fb46048 Fix global flags in Subcommands
10 years ago
Josh Mervine 8f55ca83ff running go fmt
10 years ago
Joshua Mervine 5821632000 Adding VersionPrinter and tests.
10 years ago
John Hopper 60e3dcaf6d Allow a writer to be set that represents Stdout so that redirection of App output may occur.
10 years ago
Jeremy Saenz 5e1cde20d3 Merge pull request #75 from Winslett/command-not-found
10 years ago
Summer Mousa 705994c2c6 Added unit tests
10 years ago
Summer Mousa 85c3eadea4 Adding sample test
10 years ago
Chris Winslett 37299d4e5a Customizable command not found function
10 years ago
Mr Rogers b4d98765bd rollback inconsequential changes
10 years ago
Mr Rogers 1ccba5fbb5 fix whitespace
10 years ago
Mr Rogers a70d0bb136 add tests for description output
10 years ago
Tim Jarratt 58bfabca6d Add a way to override the app help printer
10 years ago
Greg B 78d5f0dd40 Unit tests for Before() functionality
11 years ago
Katrina Owen 2ec51afe91 Implement Float64Flag. See #46
11 years ago
Alexander Rødseth 1bea6dcbf0 Custom type for arguments
11 years ago
Alexander Rødseth f93652a890 Fixed all problems/warnings reported by "go vet"
11 years ago
Jeremy Saenz e6e641143c JMS #39: App.Run returns an error
11 years ago
Thesyncim ed96efff1b add simple test , fix errors and unused interface SliceFlag
11 years ago
Damien Le Berrigaud 5d511c7a8b Allow for flags being passed in after arguments
11 years ago
Jeremy Saenz e5c31ab592 JMS-34: App.Run() can now be run multiple times.
11 years ago
Jeremy Saenz ed1ee94250 Adding some docs
11 years ago