Commit graph

1011 commits

Author SHA1 Message Date
Joshua Harshman
1c9c46d5c1
Update Generator Docs to reflect changes brought in #817 (#904) 2019-07-24 10:10:51 -06:00
umarcor
2d7544ebde fix missing newline in cmd/add (#905) 2019-07-15 09:44:15 -06:00
Carol A. Scott
9a31ddff0e Add Linkerd to list of projects using Cobra (#892) 2019-07-12 09:55:10 -06:00
rsteube
21f39ca07e bash: fix shellcheck errors (#889)
https://github.com/koalaman/shellcheck/wiki/SC2207
https://github.com/koalaman/shellcheck/wiki/SC2164
2019-07-11 12:18:47 -06:00
Juan Leni
f2b07da1e2 fixing linter issues 2019-06-07 10:48:23 -04:00
Juan Leni
b635726081 considering stderr in UsageString 2019-06-07 10:48:23 -04:00
Alessio Treglia
e35034f0da Add tests 2019-06-07 10:48:23 -04:00
Juan Leni
cb27ce11fb Deprecate and maintain backwards compatibility 2019-06-07 10:48:23 -04:00
Juan Leni
618bc00f80 Allow for explicit output to err/stderr 2019-06-07 10:48:23 -04:00
Juan Leni
0ea93dd60d Fixed linter issues 2019-06-07 10:48:23 -04:00
Juan Leni
4a716d101b Extending redirection to stdout, stderr, stdin 2019-06-07 10:48:23 -04:00
Go Frendi Gunawan
5f23f55c81 Update README.md
To avoid confusion, it is better to use `localCmd` instead of `rootCmd`
2019-06-07 10:47:24 -04:00
ialidzhikov
9eb9f5c66b Add gardenctl to projects build using Cobra
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2019-06-07 10:33:55 -04:00
Joshua Harshman
2411ac592a remove unused struct fields 2019-06-07 10:31:03 -04:00
jharshman
984374f5b6 clean up testproject files after test executes 2019-06-07 10:31:03 -04:00
jharshman
11aa612384 test add 2019-06-07 10:31:03 -04:00
jharshman
303a3e5160 vgo - strip out unused methods 2019-06-07 10:31:03 -04:00
jharshman
0bb1506d25 remove commented field in struct 2019-06-07 10:31:03 -04:00
jharshman
2fea75b02e vgo - add command working 2019-06-07 10:31:03 -04:00
jharshman
3c42f846c2 fix duplicated dir 2019-06-07 10:31:03 -04:00
jharshman
221bae3986 depricate package name flag 2019-06-07 10:31:03 -04:00
jharshman
b8ad19ad0d reorder some operations 2019-06-07 10:31:03 -04:00
jharshman
732e4db0d4 vgo - trim some uneeded data from struct 2019-06-07 10:31:03 -04:00
jharshman
c7ac101cf8 vgo - fixing up the add op to work with vgo 2019-06-07 10:31:03 -04:00
jharshman
3741457400 add CommandTemplate 2019-06-07 10:31:03 -04:00
jharshman
50665e9993 vgo - update golden templates 2019-06-07 10:31:03 -04:00
jharshman
642c3c7a0e vgo - compare generated files against golden files 2019-06-07 10:31:03 -04:00
jharshman
e993d53002 vgo - take named directory or current wd 2019-06-07 10:31:03 -04:00
jharshman
04af6aed80 vgo - add todo 2019-06-07 10:31:03 -04:00
jharshman
c3b51f3a2e simplify test 2019-06-07 10:31:03 -04:00
jharshman
4c22a20fd4 vgo - remove unused methods 2019-06-07 10:31:03 -04:00
jharshman
73b5215dc7 vgo - fix format 2019-06-07 10:31:03 -04:00
jharshman
44c2d482f6 fix calling to createLicenseFile 2019-06-07 10:31:03 -04:00
jharshman
91dbcb7ffe remove commented code 2019-06-07 10:31:03 -04:00
jharshman
5b1685faaa vgo - generate license 2019-06-07 10:31:03 -04:00
jharshman
abab9aa52a vgo - add Create method to Project struct 2019-06-07 10:31:03 -04:00
jharshman
69420a9ffa vgo - create directory 2019-06-07 10:31:03 -04:00
jharshman
17dc9f8142 fixing up templates more 2019-06-07 10:31:03 -04:00
jharshman
26d210e2cd vgo - fixing up the root template 2019-06-07 10:31:03 -04:00
jharshman
c356c6491b add .idea/* to gitignore 2019-06-07 10:31:03 -04:00
jharshman
80ea2901b6 vgo-support - re-working code generator 2019-06-07 10:31:03 -04:00
Jan Kuehle
d658160bdd Add markdown file explaining support for PowerShell 2019-06-07 10:26:08 -04:00
Jan Kuehle
21ccc7b307 Add basic PowerShell completions 2019-06-07 10:26:08 -04:00
Haim Ashkenazi
e2c45ac9eb Started working on Unified API for the various shell completions:
- Moved some general function to a more generic shell_completions file.
- Added functions to mark flag as directory completion.
- Started making the global functions docs more generic (not bash
  specific) and added compatibility matrix.
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
601d83077b typo in zsh-completions.md 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
edbb6712e2 zsh-completions: implemented argument completion. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
d262154093 zsh-completion: tidy up function and variable names
There are many files in the package, renamed all zsh-completion
related names to convey that.
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
8822449c0f zsh-completion: added escapinng of single quotes in flag description. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
66a98807d4 zsh-completion: test to verify that we're always running on root cmd. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
7b62c7df78 zsh-completion: --version and --help still doesn't work correctly
When invoking from subcommand. Modified the test to prove.
2019-06-07 10:09:50 -04:00