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
Audrius Butkevicius
e38bac8225
Print author
10 years ago
Jeremy Saenz
8c34b12d83
Merge pull request #114 from AudriusButkevicius/shortcut
...
Add App.RunAndExitOnError shortcut
10 years ago
Audrius Butkevicius
449f261ee9
Add App.RunAndExitOnError shortcut
10 years ago
Audrius Butkevicius
4a645835f0
Add HideHelp flag in App and Command
10 years ago
Philippe Lafoucrière
df5fb46048
Fix global flags in Subcommands
...
closes #69
10 years ago
Summer Mousa
a911ec75e4
Can now change these default flags in other applications
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
2535376782
If the Subcommand is instantiated, via the Before method and has no subcommands, display the CommandHelp instead of the SubcommandHelp
11 years ago
Summer Mousa
faf2a3d4a3
Added Before method to command. If set, or if command.Subcommands is set, then the command is treated as a recursive subcommand
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
Greg B
f7c1cd9a11
Add before function to app
11 years ago
Katrina Owen
7d08fb3da5
Add shortcut for version flag
11 years ago
Jeremy Saenz
01b889e637
Merge branch 'master' of github.com:xyproto/cli into xyproto-master
...
Conflicts:
app.go
context.go
11 years ago
Alexander Rødseth
1bea6dcbf0
Custom type for arguments
11 years ago
Jeremy Saenz
4120b604ec
Removed help flag. we no longer need it.
11 years ago
Jared Forsyth
dc8a62e0e9
refactor, more robust flag propagation
11 years ago
Jared Forsyth
ccb1528bb0
adding multi-named flags
11 years ago
Alexander Rødseth
7050f048d1
Added simple man page support
11 years ago
Alexander Rødseth
f93652a890
Fixed all problems/warnings reported by "go vet"
11 years ago
Jeremy Saenz
b25b7a883c
JMS #39 : Removed all calls to os.Exit().
11 years ago
Jeremy Saenz
e6e641143c
JMS #39 : App.Run returns an error
11 years ago
Jeremy Saenz
0d3c3f4497
Improved documentation
11 years ago
Jeremy Saenz
e5c31ab592
JMS-34: App.Run() can now be run multiple times.
...
- Added a method for looking up commands
- Using some logic to make sure default flags are not added more than
once
11 years ago
Casey McTaggart
3e07cbd8ba
Show usage and exit with error whenever arguments parsing fails
...
Signed-off-by: Damien Le Berrigaud <damien@pivotallabs.com>
11 years ago
Jeremy Saenz
70eacca641
JMS #25 : Added support for help flags
11 years ago
Jeremy Saenz
ed1ee94250
Adding some docs
11 years ago
Jeremy Saenz
d8cf49f0dd
Printing out version numbers
11 years ago
Jeremy Saenz
04490dabec
Minor tweaks and cleanup
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