Jesse Szwedko
005b120d20
Add godoc comments to flag structs
9 years ago
Jesse Szwedko
55b8924c2b
Merge pull request #230 from codegangsta/do-not-swallow-after-error
...
Aggregate errors from Before/After
9 years ago
Jesse Szwedko
2272dad83e
Version and help check should look for local flags too
...
Now that Global looks up the chain of contexts, the top level should
access the flags without the prefix (i.e. Bool rather than GlobalBool).
9 years ago
Jesse Szwedko
854c52192c
Merge pull request #227 from databus23/global-flags-from-all-parents
...
Collect global flags from the full command hierarchy
9 years ago
Jesse Szwedko
7ed7a51f86
Aggregate errors from Before/After
...
Previously `After` would overwrite any error from `Before`.
9 years ago
Jesse Szwedko
5d58d5b313
Merge pull request #229 from saromanov/fix-missing-value
...
Fix panic if Valus in Int/StringSliceFlasg is missing
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
Victor Vieux
35ac968c9e
upate string slice usage
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
9 years ago
jszwedko
942282e931
Add instructions for distributing bash completion
...
[ci skip]
10 years ago
jszwedko
a889873af5
Set additional information on command's 'app'
...
For completeness
10 years ago
Jesse Szwedko
4ee3fafcf8
Merge pull request #218 from codegangsta/add-another-help-test
...
Set writer when running command as app
10 years ago
jszwedko
b8104e5da7
Set writer when running command as app
...
Also add test from https://github.com/codegangsta/cli/pull/202 with
slight modifications.
10 years ago
jszwedko
f952f5ac6f
Rename TestShowAppHelp to be more verbose
...
Follow golang convention
10 years ago
jszwedko
96ad929784
Add test for inclusion of 'AUTHORS' in App help
10 years ago
Victor Vieux
7c041f5811
do not print 'AUTHOR(S):' is there is no author
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
10 years ago
Jesse Szwedko
2e64a10881
Merge pull request #217 from codegangsta/readd-print-help-function
...
Readd printHelp function back
10 years ago
jszwedko
e842547421
Readd printHelp function back
...
But update signature to take a writer. This is a backwards incompatible
change for those overriding the HelpPrinter, but the hope is that this
feature is largely unused and the usage is easily updated.
10 years ago
Jesse Szwedko
30b361bf66
Merge pull request #211 from netbun/patch-1
...
changes to readme.md
10 years ago
My-khael Pierce
a66d4d2bec
changes to readme.md
10 years ago
My-khael Pierce
e8af095ac4
changes to readme.md
10 years ago
Jesse Szwedko
9b2bd2b348
Merge pull request #205 from codegangsta/fix-aliases-readme
...
Names -> Aliases in README.md
10 years ago
jszwedko
6c6d93d451
Names -> Aliases in README.md
10 years ago
Dan Buch
2bcd11f863
Merge pull request #193 from codegangsta/add-aliases
...
Add `Command.Aliases` and deprecate `Command.ShortName`
10 years ago
jszwedko
daad50e530
Turns out I didn't mean to add ExampleAppCommands at all
10 years ago
jszwedko
474646abed
Didn't mean to remove ExampleAppSubcommand
...
Also specify struct field initializers
10 years ago
Jesse Szwedko
55e291873b
Merge pull request #200 from smallfish/patch-1
...
Update help.go
10 years ago
陈小玉
84630daaf4
Update help.go
...
change template `AUTHOR(s)` tab ident to whitespace.
10 years ago
Jesse Szwedko
8ce64f19ff
Merge pull request #187 from ravigadde/master
...
Added an API for number of flags set
10 years ago
Ravi Gadde
bcec9b08c7
Added an API and test case for number of flags set
10 years ago
Jesse Szwedko
012696c9b0
Merge pull request #196 from codegangsta/fix-deprecated-author-support
...
Fix support for deprecated author fields
10 years ago
jszwedko
b95607c608
Use named struct fields
10 years ago
jszwedko
7beac44ab1
Don't default authors
10 years ago
jszwedko
5f95a9e88b
Fix support for deprecated author fields
...
Should add an author if either name or email is specified.
10 years ago
jszwedko
bf65971a6a
Add `Command.Aliases` and deprecate `Command.ShortName`
...
`Aliases` will be more flexible while still allowing "ShortName"
behaviour via `Aliases`.
10 years ago
Jesse Szwedko
3e0905345c
Merge pull request #186 from nrdufour/master
...
Fixing the issue with a command with subcommands not showing help message
10 years ago
Jesse Szwedko
842ff18343
Merge pull request #192 from codegangsta/add-multi-author-support
...
Add multi author support
10 years ago
jszwedko
01cdaa065a
Merge remote-tracking branch 'origin/master' into add-multi-author-support
...
Conflicts:
app.go
10 years ago
Nicolas Dufour
4be878bffc
Fixing the issue with a command with subcommands not showing help message.
...
- the command name is "" and HasName was returning true for an empty
ShortName.
- the Show method wasn't aware that command name was just "" and
returned the first subcommand.
10 years ago
Harrison
c6592bb487
app, help: add backwards compatibility for Authors
10 years ago
jszwedko
50c77ecec0
Fix comments for .After field on Command and App
10 years ago
Jesse Szwedko
532d0bc2e3
Merge pull request #151 from imdario/master
...
After: companion action for Before
10 years ago
Jesse Szwedko
6086d7927e
Merge pull request #177 from vishalsodani/master
...
Fix sentence
10 years ago
Harrison
05ecd63a95
app_test: prepare for PR
10 years ago
Harrison
3d7183307a
app, help: add support for multiple authors
10 years ago
Vishal Sodani
2a9c617652
Fix sentence
10 years ago
Jesse Szwedko
e1712f3817
Merge pull request #170 from codegangsta/parse-flags-regardless
...
Use parsed context when running command as subcommnd
10 years ago
Dario Castañé
dca177c384
After handler brought up to speed.
...
As discussed in issue #151 , I modified the implementation to be simpler.
I checked how to propagate err, being done with a scope trick. From our
deferred function we cannot return a new value, so we override the "default"
return value (err), declared on functions' declarations.
Check this StackOverflow for more info: http://stackoverflow.com/a/19934989
10 years ago
Dario Castañé
4ab12cd639
jszwedko's suggestion done
10 years ago
Dario Castañé
4e3a83b43e
Merge branch 'master' of https://github.com/codegangsta/cli
...
Conflicts:
app.go
app_test.go
10 years ago