Dan Buch
b2ac0616d1
TRIVIAL Remove trailing whitespace
2016-04-27 09:31:43 -04:00
Dan Buch
23c7b807a7
Merge remote-tracking branch 'origin/master' into txgruppi-develop
2016-04-27 09:30:05 -04:00
Dan Buch
882dd2cc6b
Making sure examples in README are valid
2016-04-27 09:21:56 -04:00
Dan Buch
f688d47415
Encapsulate ExitCoder check into a lil func
2016-04-27 09:18:42 -04:00
Dan Buch
f3e55a0783
Move error types to errors.go
2016-04-27 09:13:52 -04:00
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
Jesse Szwedko
4733699ce3
Update changelog with placeholder support
2016-04-25 19:47:42 -07:00
Jesse Szwedko
7528b17cc6
Merge pull request #357 from kevin-cantwell/parse-usage-placeholders
...
Parses usage placeholders via back quotes. Resolves #333
2016-04-25 19:45:59 -07: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
Kevin Cantwell
c1c8825a46
updates README with flag usage placeholder instructions
2016-04-25 10:53:40 -04:00
Kevin Cantwell
13b7eedc13
Parses usage placeholders via back quotes. Resolves #333
2016-04-21 23:04:01 -04:00
Dan Buch
7a5bfc850d
Update dangling IntSlice literal
2016-04-05 22:40:12 -04:00
Dan Buch
cb433e7468
Use NewIntSlice and NewStringSlice internally
2016-04-05 22:38:31 -04:00
Dan Buch
867aa0912d
Overwrite slice flag defaults when set
...
Closes #160
2016-04-05 12:35:30 -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
王振威
88ea7cbec8
Add App extras info
2016-03-02 10:45:13 +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