Commit Graph

1018 Commits

Author SHA1 Message Date
7290a944e4 Allow marking persistent flags as required or filename 2015-11-06 08:43:09 -05:00
dab963a797 Persistent flags should also be used in completions 2015-11-06 08:43:09 -05:00
5c3dc12a87 README: correct name of rkt project 2015-11-06 08:42:26 -05:00
2e6a428921 Merge pull request #179 from eparis/init_comp
Check for _init_completion not_init_completionS
2015-11-03 15:41:40 -05:00
57c62d3180 Merge pull request #173 from jojomi/master
Update README.md
2015-11-03 15:29:33 -05:00
9199ed1e52 Merge pull request #178 from mattnenterprise/completions-osx
Modifying bash completions so they can run on OSX
2015-11-03 15:28:50 -05:00
428babeb31 Modifying bash completions so they can run on OSX 2015-11-03 15:21:24 -05:00
58e38f95da Check for _init_completion not_init_completionS 2015-11-03 15:09:37 -05:00
a22f212832 Add clearer demo gif 2015-11-03 10:07:00 -05:00
a082ce41f3 Merge pull request #174 from jbowes/fix-duplicate-usage
Ensure the usage command is printed only once
2015-11-02 14:27:52 -05:00
4f44cb7a62 Add demo gif to readme 2015-11-02 10:55:33 -05:00
ae5c01791c Add logo to readme 2015-11-02 10:53:04 -05:00
9bd7cfaa66 Fix bug where project name isn't properly detected 2015-10-31 22:04:55 -04:00
871b0edae2 Ensure the usage command is printed only once
Reverse a swap in logic introduced in #169 that would cause the usage
output to be printed twice.

Fixes #171
2015-10-31 10:22:19 -03:00
5fa86d5a21 Update README.md
Fixed typos with `Persistent`
2015-10-30 22:01:50 +01:00
24562666ea Merge pull request #172 from tamird/patch-1
README: fix CockroachDB typo
2015-10-29 15:18:41 -05:00
e6d130ddfc README: fix CockroachDB typo 2015-10-29 15:31:43 -04:00
2ab15e2b40 Add popular users and feature list to readme 2015-10-29 13:14:06 -04:00
8377361429 Add extra feedback on successful initialization 2015-10-28 13:45:33 -04:00
4f2eaa858f removing some extra prints 2015-10-28 13:45:08 -04:00
a7defd47ef add add command functionality to cobra 2015-10-28 13:43:58 -04:00
ea5bc31ac4 Add cobra generator application 2015-10-28 12:51:48 -04:00
230787ee13 Merge pull request #169 from apriendeau/silence-errors
[silence-errors]: adds a way for errors to silenced down the stack
2015-10-26 19:12:39 -05:00
2244c3923a [silence-errors]: adds comments around code 2015-10-26 17:42:06 -06:00
4729b374ae [silence-errors]: adds Silence Usage 2015-10-26 17:38:08 -06:00
03aabcda72 adds inheritance for SilenceErrors 2015-10-25 21:17:39 -06:00
f6e1a2df92 [silence-errors]: -m adds a way for errors to silenced down the stack 2015-10-25 19:58:53 -06:00
8b2293c741 Merge pull request #167 from siddharthist/docs/ArgsLenAtDash
Added documentation for ArgsLenAtDash
2015-10-13 17:51:39 -05:00
c4d6dbe059 Added documentation for ArgsLenAtDash 2015-10-13 15:41:57 -07:00
d732ab3a34 Merge pull request #164 from vikstrous/fix_bug
fix bug with PersistentPreRunE
2015-09-30 09:31:26 -04:00
72ee37f33e fix bug with PersistentPreRunE 2015-09-30 00:09:17 -07:00
046a673252 Merge pull request #163 from fabianofranz/siblings_improvements
Improve suggestions
2015-09-29 11:27:22 -04:00
a83a172122 Improve suggestions - add explicit SuggestFor attribute 2015-09-25 12:07:38 -03:00
3afa4db2c6 Improve suggestions - prefix will match 2015-09-25 11:41:47 -03:00
53d96508f5 Merge pull request #160 from eparis/len-at-dash
Provide the length of Args when a -- is found in commandline
2015-09-17 16:09:08 -05:00
edde52e321 Provide the length of Args when a -- is found in commandline
This allows a program to know what args came before the -- and what args
came after.
2015-09-16 12:31:41 -04:00
4b76e97cd6 Merge pull request #158 from eparis/more-errors-in-test
More error output if a could of _test fail
2015-09-15 22:57:41 -05:00
664a3ab4a3 Merge pull request #159 from eparis/travis
Update travis to use more versions of go
2015-09-15 22:57:29 -05:00
6e4e76655d More error output if a could of _test fail 2015-09-15 18:02:03 -04:00
79996f7fcf Update travis to use more versions of go 2015-09-15 18:01:43 -04:00
6d70311770 Merge pull request #149 from fabianofranz/siblings
Allows command suggestions along with "unknown command" errors
2015-09-13 22:44:46 -05:00
b4087da7eb Allows command suggestions along with "unknown command" errors 2015-09-13 23:35:10 -03:00
b28774dd68 Merge pull request #154 from eparis/fix-trailing-newline
If nothing after flags: sting print a newline
2015-09-11 23:27:51 -05:00
632e090805 If nothing after flags: sting print a newline 2015-09-12 00:21:31 -04:00
eeec8e3ce3 Merge pull request #153 from eparis/remove-useless-assignment
UsageTemple: remove useless variable assignment
2015-09-11 18:00:59 -05:00
d96b4f7741 Merge pull request #152 from eparis/no-newline-after-flags
No newline after Flags in usage
2015-09-11 18:00:50 -05:00
1ac08d9d94 UsageTemple: remove useless variable assignment 2015-09-11 18:52:47 -04:00
85bb343e9c Merge pull request #151 from eparis/no-newline-without-short
No leading newline if Short and Long both unset
2015-09-11 17:46:37 -05:00
0d9b07baf9 Merge pull request #150 from eparis/help-not-available
Do not count "help" as "Available"
2015-09-11 17:46:27 -05:00
8af2b2b89f No newline after Flags in usage
The flags usage template from pflags has a trailing \n. We need to
include a newline in case there are no flags in our template. This will
trim the newline from the end of the flags from pflag and we can do it
right outselves.
2015-09-11 18:45:28 -04:00