Katrina Owen
683e911d61
Return error from app and command actions. See #66 .
...
This introduces a significant breaking change, and I don't expect it to
be merged off-hand. I do think that it's worth discussion, since it
seems like a very idiomatic choice in terms of how errors would be handled.
A similar backwards-incompatible change was introduced in e6e64114
,
allowing the app's Run method to return an error.
10 years ago
Josh Mervine
120f0688a4
Merge remote-tracking branch 'parent/master'
...
Conflicts:
cli_test.go
flag_test.go
10 years ago
Jeremy Saenz
ec11175ac1
Merge pull request #123 from AudriusButkevicius/help
...
Additional help cleanup
10 years ago
Audrius Butkevicius
527fbe0671
Unify template formatting
10 years ago
Audrius Butkevicius
fcc1613bb5
Do not show empty description section
10 years ago
Audrius Butkevicius
e38bac8225
Print author
10 years ago
Audrius Butkevicius
bc02933ea4
Fix Subcommand help text
10 years ago
Audrius Butkevicius
d6d4e6448b
Hide "Options" sections in help, if no flags are defined
10 years ago
Joshua Mervine
5821632000
Adding VersionPrinter and tests.
10 years ago
Jack Christensen
357921b483
Use HelpPrinter in ShowCommandHelp
11 years ago
Jeremy Saenz
5e1cde20d3
Merge pull request #75 from Winslett/command-not-found
...
Customizable command not found function
11 years ago
Summer Mousa
705994c2c6
Added unit tests
11 years ago
Summer Mousa
13f0c8c0f6
More consistent implementation of recursive subcommands
11 years ago
Summer Mousa
3a10545f91
Made bash completion command optional; still need to update documentation
11 years ago
Summer Mousa
0b29bee364
merging code
11 years ago
Chris Winslett
37299d4e5a
Customizable command not found function
11 years ago
Tim Jarratt
58bfabca6d
Add a way to override the app help printer
...
Fixes #64
11 years ago
Alexander Rødseth
22a56266c5
Removed the function and data structure for generating man pages
11 years ago
Alexander Rødseth
1bea6dcbf0
Custom type for arguments
11 years ago
Alexander Rødseth
7050f048d1
Added simple man page support
11 years ago
Jeremy Saenz
b25b7a883c
JMS #39 : Removed all calls to os.Exit().
11 years ago
Jeremy Saenz
8cea424806
JMS #28 : -h flags for subcommands
11 years ago
Jeremy Saenz
70eacca641
JMS #25 : Added support for help flags
11 years ago
Jeremy Saenz
41dde0adab
JMS #5 : Displaying help for subcommands. Better looking help code
11 years ago
Jeremy Saenz
0dd327f6e5
JMS #5 : Starting support for subcommand docs
11 years ago
Jeremy Saenz
d8cf49f0dd
Printing out version numbers
11 years ago
Jeremy Saenz
580cc011fd
JMS #14 : More help cleanup
11 years ago
Jeremy Saenz
63b9f2823a
JMS #14 : Improved help. Brought help commadn back to commands
11 years ago
Jeremy Saenz
6664835bc1
JMS #14 : Moving toward having and app object
11 years ago
Jeremy Saenz
3b0fc03a67
JMS #4 : Support for flag handling on command line
11 years ago
Jeremy Saenz
96f806fd22
JMS #3 : Passing a context struct instead of a string
11 years ago
Jeremy Saenz
921da63e2e
Support for global flags in help text
11 years ago
Jeremy Saenz
16bf6d4f76
Formatting
11 years ago
Jeremy Saenz
5a624affb8
Yo dawg, I heard you liked the help command...
...
So I described the help command in your help command
so you can help command while you help command
11 years ago
Jeremy Saenz
bdb9c5ab61
Support for shortnames
11 years ago
Jeremy Saenz
9186f6e81a
Removed error handling and cleaned up template
11 years ago
Jeremy Saenz
5b788be8a6
Formatted help text via templates
11 years ago
Jeremy Saenz
6016cafda3
Removed application object, help formatting
11 years ago