Dan Buch
b453bf5940
Clarifying errors returned from HandleAction + tests
9 years ago
Dan Buch
271b56c71b
Cleanups based on feedback in #361
9 years ago
Dan Buch
7371138edb
Add back App.RunAndExitOnError with deprecation message
9 years ago
Dan Buch
02924293ff
Removing unused vars
9 years ago
Dan Buch
9e8ead512a
Making gfmxr assertion stronger
9 years ago
Dan Buch
3b5133fbb1
Add gfmxr integration for checking examples in README.md
...
now that we support the legacy Action func signature.
9 years ago
Dan Buch
d45f7c1fe2
Allow for legacy and newer Action func signatures
9 years ago
Dan Buch
d48e22a9dd
Docs around exit error behavior, + handling MultiError in HandleExitCoder
9 years ago
Dan Buch
b2ac0616d1
TRIVIAL Remove trailing whitespace
9 years ago
Dan Buch
23c7b807a7
Merge remote-tracking branch 'origin/master' into txgruppi-develop
9 years ago
Dan Buch
882dd2cc6b
Making sure examples in README are valid
9 years ago
Dan Buch
f688d47415
Encapsulate ExitCoder check into a lil func
9 years ago
Dan Buch
f3e55a0783
Move error types to errors.go
9 years ago
Dan Buch
b7329f4968
Switch from multi-return with exit codes to ExitCoder check
9 years ago
Dan Buch
b40b62794d
Ensure README examples are runnable
9 years ago
Jesse Szwedko
4733699ce3
Update changelog with placeholder support
9 years ago
Jesse Szwedko
7528b17cc6
Merge pull request #357 from kevin-cantwell/parse-usage-placeholders
...
Parses usage placeholders via back quotes. Resolves #333
9 years ago
Dan Buch
a17c8cf1d8
Rename func type suffixes `Fn`->`Func` and add `OnUsageErrorFunc`
9 years ago
Dan Buch
10c8309d84
Merge branch 'develop' of https://github.com/txgruppi/cli into txgruppi-develop
9 years ago
Dan Buch
8f4634de7c
Merge pull request #360 from codegangsta/keep-a-changelog
...
Keep a changelog
9 years ago
Dan Buch
95d18920ad
Linkify release headings
9 years ago
Dan Buch
ed0056d1c1
Add `CHANGELOG.md` with backfilled releases
9 years ago
Kevin Cantwell
c1c8825a46
updates README with flag usage placeholder instructions
9 years ago
Kevin Cantwell
13b7eedc13
Parses usage placeholders via back quotes. Resolves #333
9 years ago
Dan Buch
7a5bfc850d
Update dangling IntSlice literal
9 years ago
Dan Buch
cb433e7468
Use NewIntSlice and NewStringSlice internally
9 years ago
Dan Buch
867aa0912d
Overwrite slice flag defaults when set
...
Closes #160
9 years ago
Jesse Szwedko
71f57d300d
Merge pull request #349 from Felamande/master
...
use filepath.Base instead of path.Base in Name & HelpName as default.
9 years ago
Felamande
3fb51f15e8
use filepath.Base instead of path.Base in Name & HelpName as default values.
9 years ago
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
9 years ago
Jesse Szwedko
9fec0fad02
Merge pull request #343 from TimeIncOSS/f-hide-version
...
Never show version if HideVersion=true
9 years ago
Radek Simko
d21170f0e3
Never show version if HideVersion=true
9 years ago
Jesse Szwedko
a7936f1d21
Merge pull request #342 from korzonek/master
...
codebeat badge
9 years ago
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>
9 years ago
Jesse Szwedko
a7be4a3f19
Describe category behavior in README
9 years ago
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.
9 years ago
Soulou
d0997e8f99
Set Categories as a read-only method and fix tests
9 years ago
Soulou
994a7028e2
Categories as slice, not a map anymore, order is always preserved
9 years ago
Soulou
a0801792cc
Allow to sort commands by category
9 years ago
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.
9 years ago
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.
9 years ago
Jesse Szwedko
6bb6787f33
Merge pull request #306 from ChrisPRobinson/inputfilesupport
...
Update to add yaml support
9 years ago
王振威
88ea7cbec8
Add App extras info
9 years ago
Jesse Szwedko
a2943485b1
Merge pull request #336 from muraty/master
...
Add NArg method to context
9 years ago
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
9 years ago
Omer Murat Yildirim
802f64479d
Add NArg method to context structure
9 years ago
Jesse Szwedko
5db74198de
Merge pull request #334 from djui/patch-1
...
Fix semantic typo
9 years ago
Uwe Dauernheim
a755a95d01
Fix semantic typo
9 years ago
Jesse Szwedko
0ab42fd482
Merge pull request #332 from adamclerk/fix/spellingErrors
...
Fixes spelling issues and import alphabetical issues
9 years ago
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.
9 years ago