Commit graph

17 commits

Author SHA1 Message Date
John McBride
19c9c74384
Always include the os package import when generating the root command (#1557)
Signed-off-by: John McBride <jmcbride@vmware.com>
2021-12-09 14:47:27 -07:00
ANGkeith
1beb476da9
fix: Duplicate error message from cobra init boilerplates (#1463) 2021-12-07 16:03:24 -07:00
Steve Francia
c0dd5cdef5 Removing unused imports when not using Viper 2021-11-03 15:36:51 -04:00
umarcor
8eaca5f0f4 drop mitchellh/go-homedir (#853) 2021-06-30 14:08:43 -04:00
Rob Playford
9a432671fd
fix home directory config not loading (#1282)
leverage `viper.SetConfigType("yaml")` to fix issue regarding home directory configuration failing to load.
2021-06-15 19:52:13 -06:00
Unai Martinez-Corral
652c755d37
Use golangci-lint (#1044)
Use golangci-lint. Repair warnings and errors resulting from linting.
2021-02-07 17:08:50 -07:00
Joshua Harshman
447f182a9d
format tpl/main.go templates (#980) 2019-12-23 13:51:40 -07:00
Bruce Downs
993cc5372a Adjustments per PR review feedback from @bogem 2019-08-02 01:25:21 +05:00
Bruce Downs
51f06c7dd1 Correct all complaints from golint
* i.e.
* go get golang.org/x/lint/golint
* go list ./... | xargs golint
2019-08-02 01:25:21 +05:00
jharshman
11aa612384 test add 2019-06-07 10:31:03 -04:00
jharshman
2fea75b02e vgo - add command working 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
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
80ea2901b6 vgo-support - re-working code generator 2019-06-07 10:31:03 -04:00