Artem Nezvigin
6db418e461
Add Context.GlobalFlagNames()
10 years ago
Dan Buch
f7ebb761e8
Merge pull request #137 from nyushi/fix-example-code
...
Fix example code
10 years ago
Dan Buch
78d497e4cf
Adding support for multiple env var "cascade"
10 years ago
Yushi Nakai
9610ab1729
Fix example code
10 years ago
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
Jesse Szwedko
7381bc4e62
Merge pull request #134 from Zearin/patch-1
...
Minor README tweaks
10 years ago
Tony
023450545e
Minor README tweaks
10 years ago
Nima Jahanshahi
4db56687fa
Fixed ShowSubcommandHelp
...
ShowSubcommandHelp should show help for the subcommand not the app
10 years ago
Jeremy Saenz
687db20fc3
Merge pull request #98 from jmervine/master
...
Exposing 'VersionPrinter'
10 years ago
Josh Mervine
089def51d8
Tweaking tests, removing local import.
10 years ago
Josh Mervine
120f0688a4
Merge remote-tracking branch 'parent/master'
...
Conflicts:
cli_test.go
flag_test.go
10 years ago
Jeremy Saenz
aa19913be3
Merge pull request #96 from ghigt/master
...
Add time.Duration flag type
10 years ago
Ghislain Gt
98af61a59f
Add time.Duration flag type
10 years ago
Jeremy Saenz
c7ff3bf705
Merge pull request #95 from artnez/master
...
Add FlagNames() method to Context
10 years ago
Jeremy Saenz
5170d7f005
Merge pull request #99 from nyushi/add-zsh-autocomplete
...
Zsh completion
10 years ago
Jeremy Saenz
e30d7bdf28
Merge pull request #121 from KAllan357/add_cnf_to_subcommand
...
Copy CommandNotFound into the NewApp for subcommands
10 years ago
Jeremy Saenz
ec11175ac1
Merge pull request #123 from AudriusButkevicius/help
...
Additional help cleanup
10 years ago
Jeremy Saenz
0e069d0611
Update README.md
10 years ago
Jeremy Saenz
8b5fb40131
Added contributor guidelines
10 years ago
Jeremy Saenz
6543424570
Merge pull request #122 from AudriusButkevicius/author
...
Print author
10 years ago
Jeremy Saenz
565493f259
Merge pull request #108 from modcloth/env-config-fun
...
Adding support for default from the env
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
Kyle Allan
156cd267e5
move to CommandNotFound copy to startApp
10 years ago
Kyle Allan
1880853f15
copy the CommandNotFound when running as a subcommand
10 years ago
Dan Buch
e8939d2aa0
Merge remote-tracking branch 'origin/master' into env-config-fun
...
Conflicts:
README.md
app_test.go
cli_test.go
10 years ago
Jeremy Saenz
27ecc97192
Merge pull request #112 from AudriusButkevicius/swap
...
Add Args.Swap command for swapping arguments
10 years ago
Jeremy Saenz
8c34b12d83
Merge pull request #114 from AudriusButkevicius/shortcut
...
Add App.RunAndExitOnError shortcut
10 years ago
Jeremy Saenz
c7d940a369
Merge pull request #115 from AudriusButkevicius/hidehelp
...
Make help command optional
10 years ago
Jeremy Saenz
650665814a
Merge pull request #116 from modcloth/add-go-vet-to-travis-build
...
Run `go vet` as part of Travis build
10 years ago
jszwedko
9e5f47524b
Run `go vet` as part of Travis build
10 years ago
Audrius Butkevicius
449f261ee9
Add App.RunAndExitOnError shortcut
10 years ago
Audrius Butkevicius
6f8cfa703a
Add Args.Swap command for swapping arguments
...
The usecase:
my-cli user <USERID> set <FIELD> <VALUE>
Being able to swap <USERID> with set argument, we can have nested subcommands while preserving all variable arguments along the way.
10 years ago
Audrius Butkevicius
9e036e08f1
Fix tests
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
Audrius Butkevicius
4a645835f0
Add HideHelp flag in App and Command
10 years ago
Jeremy Saenz
d38a3b82a6
Merge pull request #109 from modcloth/go-vetting
...
Go vetting
10 years ago
Dan Buch
48869e13a4
Addressing `go vet` offenses
10 years ago
jszwedko
c99454b374
Adding struct field names to examples in README
...
Idiomatic Go
10 years ago
jszwedko
bcfb32b8b0
Updating tests to pass `go vet`
...
Mostly lack of struct field names in literals and one sprintf format
specifier mismatch.
10 years ago
Dan Buch
fc16c67be3
Updating structs to use labels, adding tests for env stuff
10 years ago
Dan Buch
97fd93272f
Starting to hack in some env var configuration goodness
10 years ago
Jeremy Saenz
5ddbbe33e5
Merge pull request #106 from gemnasium/fix-subcmd-global-flags
...
Fix global flags in Subcommands
10 years ago
Philippe Lafoucrière
df5fb46048
Fix global flags in Subcommands
...
closes #69
10 years ago
Yushi Nakai
742745ce19
add completion file for zsh
10 years ago
Josh Mervine
8f55ca83ff
running go fmt
10 years ago
Josh Mervine
7ca86444e8
making all pathing for cli local in tests for easier fork testing
10 years ago
Joshua Mervine
5821632000
Adding VersionPrinter and tests.
10 years ago