Dan Buch
b7329f4968
Switch from multi-return with exit codes to ExitCoder check
2016-04-27 09:12:34 -04:00
Dan Buch
b40b62794d
Ensure README examples are runnable
2016-04-26 07:05:50 -04:00
Dan Buch
a17c8cf1d8
Rename func type suffixes Fn
->Func
and add OnUsageErrorFunc
2016-04-25 18:29:05 -04:00
Dan Buch
10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
2016-04-25 18:10:10 -04:00
8f4634de7c
Merge pull request #360 from codegangsta/keep-a-changelog
...
Keep a changelog
2016-04-25 17:00:36 -04:00
Dan Buch
95d18920ad
Linkify release headings
2016-04-25 15:58:30 -04:00
Dan Buch
ed0056d1c1
Add CHANGELOG.md
with backfilled releases
2016-04-25 15:48:21 -04:00
Jesse Szwedko
71f57d300d
Merge pull request #349 from Felamande/master
...
use filepath.Base instead of path.Base in Name & HelpName as default.
2016-04-03 18:54:34 -07:00
Felamande
3fb51f15e8
use filepath.Base instead of path.Base in Name & HelpName as default values.
2016-04-03 17:50:08 +08:00
Jesse Szwedko
bc465beccc
Merge pull request #346 from codegangsta/category_sort_2
...
Add option to make categories with command, to display a more structured help
2016-03-26 15:39:47 -07:00
Jesse Szwedko
9fec0fad02
Merge pull request #343 from TimeIncOSS/f-hide-version
...
Never show version if HideVersion=true
2016-03-21 23:42:55 -05:00
Radek Simko
d21170f0e3
Never show version if HideVersion=true
2016-03-21 16:12:46 +00:00
Jesse Szwedko
a7936f1d21
Merge pull request #342 from korzonek/master
...
codebeat badge
2016-03-20 15:44:03 -05:00
Yasuhiro KANDA
ad7ed77a7e
Fix yaml file loader
...
* fix typo (yamlSourceLoader -> yamlSourceContext)
* fix function return type (NewYamlSourceFromFlagFunc)
Also fixed build tags to properly build on >=go1.2
Signed-off-by: Jesse Szwedko <jesse.szwedko@gmail.com>
2016-03-20 12:42:00 -07:00
Jesse Szwedko
a7be4a3f19
Describe category behavior in README
2016-03-20 12:18:28 -07:00
Jesse Szwedko
042842b819
Remove CategorizedHelp from App and allow subcommands to have categories
...
Just place all subcommands in categories, the default category will be
"" which will properly format the output (and group commands that have
no category).
Also allow subcommands to have categories.
Lastly, augment the test to check the output.
2016-03-20 12:17:13 -07:00
Soulou
d0997e8f99
Set Categories as a read-only method and fix tests
2016-03-20 11:35:26 -07:00
Soulou
994a7028e2
Categories as slice, not a map anymore, order is always preserved
2016-03-20 11:35:25 -07:00
Soulou
a0801792cc
Allow to sort commands by category
2016-03-20 11:32:58 -07:00
Tomasz Korzeniowski
a4557da1b3
codebeat badge
...
Is it fine to add codebeat badge to README?
codebeat is automated code review tool for Swift,Ruby,Go & Python that helps get instant feedback on code quality.
"Quick wins" suggested by codebeat could be a nice candidate for a pull request and help other developers become contributors.
FYI. To be fully open and honest. I'm co-founder of codebeat.
2016-03-11 09:37:02 +01:00
Jesse Szwedko
aca5b047ed
Drop support for Go 1.0.3
...
Incompatible with the new alternate input sources and I don't see
a compelling reason to continue its support.
2016-03-06 20:12:29 -08:00
Jesse Szwedko
6bb6787f33
Merge pull request #306 from ChrisPRobinson/inputfilesupport
...
Update to add yaml support
2016-03-06 20:12:11 -08:00
Jesse Szwedko
a2943485b1
Merge pull request #336 from muraty/master
...
Add NArg method to context
2016-02-27 08:56:50 -08:00
chrisprobinson
d3b02e41b0
Update to add build contraints to not compile in yaml support
...
in the case the golang version is less than golang 1.2
2016-02-21 20:06:02 -08:00
Omer Murat Yildirim
802f64479d
Add NArg method to context structure
2016-02-21 15:57:11 +02:00
Jesse Szwedko
5db74198de
Merge pull request #334 from djui/patch-1
...
Fix semantic typo
2016-02-17 19:24:44 -08:00
Uwe Dauernheim
a755a95d01
Fix semantic typo
2016-02-17 14:51:16 +00:00
Jesse Szwedko
0ab42fd482
Merge pull request #332 from adamclerk/fix/spellingErrors
...
Fixes spelling issues and import alphabetical issues
2016-02-09 20:42:30 -08:00
adamclerk
cde8418658
Fixes spelling issues and import alphabetical issues
...
Using goreportcard.com I noticed a few spelling errors. I really love codegangsta/cli
and wanted to help improve it.
2016-02-09 09:36:13 -07:00
Jesse Szwedko
8cea2901d4
Merge pull request #331 from blaubaer/windows-ci
...
Added ci configuration for windows using AppVeyor
2016-02-08 21:40:34 -08:00
chrisprobinson
0c3102278a
Update to add yaml support
2016-02-08 13:18:38 -08:00
Chris Robinson
9001f738f4
Merge pull request #4 from codegangsta/master
...
merge
2016-02-08 13:17:54 -08:00
Gregor Noczinski
d81f682964
* Added ci configuration for windows using AppVeyor
2016-02-07 13:10:26 +01:00
Jesse Szwedko
d5f087da9d
Merge pull request #289 from KSubedi/master
...
Added command to have a custom text on the USAGE section of help
2016-02-06 13:12:10 -08:00
Jesse Szwedko
94d8ca740d
Merge pull request #321 from blaubaer/master
...
Improve help messages for empty strings and do os specific envVar handling on windows
2016-02-06 13:06:44 -08:00
Jesse Szwedko
3565e5dfe6
Merge pull request #322 from blaubaer/custom-error-handling
...
Introduce custom usage error handling
2016-02-06 12:58:47 -08:00
Gregor Noczinski
24fa3e9ab4
Merge remote-tracking branch 'origin/custom-error-handling' into custom-error-handling
...
# Conflicts:
# app.go
2016-02-06 21:41:11 +01:00
Gregor Noczinski
66c1742012
* Fixed typos
2016-02-06 21:39:35 +01:00
Gregor Noczinski
c462071a52
* Added ability to customize usage error messages
2016-02-06 21:39:35 +01:00
Jesse Szwedko
0d23d77bee
Merge pull request #329 from leonardyp/master
...
optimization of some places
2016-02-06 11:30:49 -08:00
leonardyp
6f6e8caf6c
Repeat context statement because of a is a pointer
...
performance optimization
gofmt code
2016-02-04 15:25:41 +08:00
Jesse Szwedko
cf1f63a727
Merge pull request #323 from hpcloud/master
...
Fixed mishandling of a "-"(dash)-argument causing reordering of cli n…
2016-01-29 19:19:57 -08:00
Jesse Szwedko
114097b816
Merge pull request #326 from tcyrus/patch-1
...
Update README.md
2016-01-28 18:17:57 -08:00
Timothy Cyrus
918b268473
Update README.md
...
Replace PNG Badge With SVG and other minor fixes
2016-01-28 20:42:14 -05:00
Andreas Kupries
bb4e78eb6a
Fixed mishandling of a "-"(dash)-argument causing reordering of cli non-flag arguments.
...
Added test demonstrating issue (PASS with fix, FAIL without).
2016-01-26 15:34:53 -08:00
Gregor Noczinski
cb7a7c56ee
* Fixed typos
2016-01-23 14:50:25 +01:00
Gregor Noczinski
7319f042e4
* Added ability to customize usage error messages
2016-01-23 12:47:24 +01:00
Gregor Noczinski
09e2c89597
* Changed the way how to return the result. Because of strange ci failure
2016-01-23 12:01:49 +01:00
Gregor Noczinski
82ddbd9a07
* Improve GenericFlag.String() by suppressing empty "" for GenericFlags on nil or empty Generic.String()
...
* Cleanup StringFlag.String()
* Add os specific envHint handling for Windows (%ENV_VAR% instead of $ENV_VAR on posix systems)
2016-01-22 15:08:27 +01:00
Jesse Szwedko
f9cc3001e0
Merge pull request #315 from blaubaer/master
...
Improved Before/After handling for Commands
2016-01-21 21:44:38 -08:00