Commit Graph

234 Commits

Author SHA1 Message Date
Dan Buch
dca23da84b Merge remote-tracking branch 'origin/master' into multi-env-var 2014-12-01 22:44:36 -05:00
Jeremy Saenz
9908e96513 Update README.md 2014-11-23 13:46:56 -08:00
Jeremy Saenz
b731cdcd0b Merge pull request #152 from OVYA/master
Fix bash completion for deep level subcommands
2014-11-23 13:40:21 -08:00
Jeremy Saenz
0cd0f1a3ae Merge pull request #143 from artnez/master
Add Context.GlobalFlagNames()
2014-11-23 13:40:04 -08:00
Jeremy Saenz
bfc92c213e Merge pull request #146 from jhowarth/master
Add a function to determine if a global flag is set
2014-11-19 13:44:52 -08:00
pivaldi
59ef9567ae Fix bash completion for deep level subcommands 2014-11-19 11:05:01 +01:00
Jesse Szwedko
229729fae6 Merge pull request #150 from kytrinyx/readme-example
Clarify example in README. Fixes #149
2014-11-13 13:20:49 -05:00
Katrina Owen
993877b447 Clarify example in README. Fixes #149 2014-11-13 06:27:03 -08:00
Jesse Szwedko
61f43e7695 Merge pull request #147 from peterbourgon/master
Make -v, --version optional
2014-11-12 09:51:28 -05:00
Peter Bourgon
179c7a5f7c Make -v, --version optional 2014-11-12 12:38:58 +01:00
Jesse Howarth
a6bafbe9a5 Add additional test 2014-11-11 12:50:40 -08:00
Jesse Howarth
b490b5e35d Add a function to determine if a global flag is set. 2014-11-11 12:48:07 -08:00
Artem Nezvigin
6db418e461 Add Context.GlobalFlagNames() 2014-10-02 15:17:57 -07:00
f7ebb761e8 Merge pull request #137 from nyushi/fix-example-code
Fix example code
2014-09-22 23:34:35 -04:00
78d497e4cf Adding support for multiple env var "cascade" 2014-09-22 23:28:57 -04:00
Yushi Nakai
9610ab1729 Fix example code 2014-09-15 21:03:35 +00:00
Jesse Szwedko
7381bc4e62 Merge pull request #134 from Zearin/patch-1
Minor README tweaks
2014-08-27 20:51:55 -04:00
Tony
023450545e Minor README tweaks 2014-08-24 12:28:10 -04:00
Jeremy Saenz
687db20fc3 Merge pull request #98 from jmervine/master
Exposing 'VersionPrinter'
2014-08-10 14:42:28 -07:00
Josh Mervine
089def51d8 Tweaking tests, removing local import. 2014-08-04 11:30:13 -07:00
Josh Mervine
120f0688a4 Merge remote-tracking branch 'parent/master'
Conflicts:
	cli_test.go
	flag_test.go
2014-08-04 11:25:45 -07:00
Jeremy Saenz
aa19913be3 Merge pull request #96 from ghigt/master
Add time.Duration flag type
2014-08-02 14:44:59 -07:00
Ghislain Gt
98af61a59f Add time.Duration flag type 2014-08-02 22:32:32 +01:00
Jeremy Saenz
c7ff3bf705 Merge pull request #95 from artnez/master
Add FlagNames() method to Context
2014-08-02 13:05:49 -07:00
Jeremy Saenz
5170d7f005 Merge pull request #99 from nyushi/add-zsh-autocomplete
Zsh completion
2014-08-02 13:02:06 -07:00
Jeremy Saenz
e30d7bdf28 Merge pull request #121 from KAllan357/add_cnf_to_subcommand
Copy CommandNotFound into the NewApp for subcommands
2014-08-02 12:57:48 -07:00
Jeremy Saenz
ec11175ac1 Merge pull request #123 from AudriusButkevicius/help
Additional help cleanup
2014-08-02 12:56:38 -07:00
Jeremy Saenz
0e069d0611 Update README.md 2014-08-02 12:46:57 -07:00
Jeremy Saenz
8b5fb40131 Added contributor guidelines 2014-08-02 12:45:44 -07:00
Jeremy Saenz
6543424570 Merge pull request #122 from AudriusButkevicius/author
Print author
2014-08-02 12:37:14 -07:00
Jeremy Saenz
565493f259 Merge pull request #108 from modcloth/env-config-fun
Adding support for default from the env
2014-08-02 12:32:48 -07:00
Audrius Butkevicius
527fbe0671 Unify template formatting 2014-07-26 22:24:08 +01:00
Audrius Butkevicius
fcc1613bb5 Do not show empty description section 2014-07-26 22:23:36 +01:00
Audrius Butkevicius
e38bac8225 Print author 2014-07-26 22:03:32 +01:00
Kyle Allan
156cd267e5 move to CommandNotFound copy to startApp 2014-07-25 10:06:04 -07:00
Kyle Allan
1880853f15 copy the CommandNotFound when running as a subcommand 2014-07-24 23:48:10 -07:00
e8939d2aa0 Merge remote-tracking branch 'origin/master' into env-config-fun
Conflicts:
	README.md
	app_test.go
	cli_test.go
2014-07-15 16:54:29 -04:00
Jeremy Saenz
27ecc97192 Merge pull request #112 from AudriusButkevicius/swap
Add Args.Swap command for swapping arguments
2014-07-15 12:35:57 -07:00
Jeremy Saenz
8c34b12d83 Merge pull request #114 from AudriusButkevicius/shortcut
Add App.RunAndExitOnError shortcut
2014-07-15 12:30:47 -07:00
Jeremy Saenz
c7d940a369 Merge pull request #115 from AudriusButkevicius/hidehelp
Make help command optional
2014-07-15 12:29:21 -07:00
Jeremy Saenz
650665814a Merge pull request #116 from modcloth/add-go-vet-to-travis-build
Run `go vet` as part of Travis build
2014-07-15 12:28:19 -07:00
jszwedko
9e5f47524b Run go vet as part of Travis build 2014-07-14 13:48:52 -04:00
Audrius Butkevicius
449f261ee9 Add App.RunAndExitOnError shortcut 2014-07-13 18:56:43 +01:00
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.
2014-07-13 18:56:02 +01:00
Audrius Butkevicius
9e036e08f1 Fix tests 2014-07-13 18:52:30 +01:00
Audrius Butkevicius
bc02933ea4 Fix Subcommand help text 2014-07-13 18:51:24 +01:00
Audrius Butkevicius
d6d4e6448b Hide "Options" sections in help, if no flags are defined 2014-07-13 18:51:17 +01:00
Audrius Butkevicius
4a645835f0 Add HideHelp flag in App and Command 2014-07-13 18:51:09 +01:00
Jeremy Saenz
d38a3b82a6 Merge pull request #109 from modcloth/go-vetting
Go vetting
2014-07-11 15:57:55 -07:00
48869e13a4 Addressing go vet offenses 2014-07-11 18:30:16 -04:00