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
Kyle Allan
156cd267e5
move to CommandNotFound copy to startApp
10 years ago
Audrius Butkevicius
4a645835f0
Add HideHelp flag in App and Command
10 years ago
Summer Mousa
a911ec75e4
Can now change these default flags in other applications
11 years ago
Jeremy Saenz
73aae5979c
Merge pull request #80 from wendorf/master
...
Add SkipFlagParsing option to Command
11 years ago
Jeremy Saenz
a502865bb7
Merge pull request #74 from Winslett/context-accessible-command
...
Make Command accessible from Context
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
Dan Wendorf and Karen Wang
6c5f810d8f
Add SkipFlagParsing option to Command
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
c69522c960
Make Command accessible from Context
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
ab6f1b7c3c
Formatting
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
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
0d3c3f4497
Improved documentation
11 years ago
Thesyncim
4d9038a156
add ability to parse []string types
11 years ago
Damien Le Berrigaud
5d511c7a8b
Allow for flags being passed in after arguments
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
8cea424806
JMS #28 : -h flags for subcommands
11 years ago
Jeremy Saenz
ed1ee94250
Adding some docs
11 years ago
Jeremy Saenz
04490dabec
Minor tweaks and cleanup
11 years ago
Jeremy Saenz
6664835bc1
JMS #14 : Moving toward having and app object
11 years ago
Jeremy Saenz
c15c42a7a8
JMS #4 : Command.HasName
11 years ago
Jeremy Saenz
4495e2e996
JMS #4 : Delegating to Command.Run
11 years ago
Jeremy Saenz
3f76896c4f
JMS #4 : Getting some cli tests going. Testing out flags
11 years ago