Commit graph

  • 7da993a93c remove commented code jharshman 2019-01-29 20:26:08 -08:00
  • e5b5fab991 vgo - generate license jharshman 2019-01-29 20:25:38 -08:00
  • 5a88abf480 vgo - add Create method to Project struct jharshman 2019-01-29 19:34:11 -08:00
  • cdf9a77e5e vgo - create directory jharshman 2019-01-29 19:11:26 -08:00
  • f3ea814bc1 fixing up templates more jharshman 2019-01-29 01:19:08 -08:00
  • 2ab82d1911 vgo - fixing up the root template jharshman 2019-01-29 01:07:11 -08:00
  • d9b54e814e add .idea/* to gitignore jharshman 2019-01-29 00:48:25 -08:00
  • b3e76f81f5 vgo-support - re-working code generator jharshman 2019-01-29 00:46:54 -08:00
  • 93f9eeb535
    Add tendermint and cosmos-sdk to the list of projects using cobra Alessio Treglia 2019-05-02 17:24:15 +01:00
  • 2bd35aa49d
    Add tests Alessio Treglia 2019-04-30 18:41:56 +01:00
  • 0bc69e7291
    Deprecate and maintain backwards compatibility Juan Leni 2019-02-13 06:32:16 +01:00
  • 3b830e6362
    Allow for explicit output to err/stderr Juan Leni 2019-02-11 16:06:55 +01:00
  • d4fdebeba2
    Fixed linter issues Juan Leni 2019-02-11 08:22:54 +01:00
  • daf3ced828
    Extending redirection to stdout, stderr, stdin Juan Leni 2019-02-11 07:10:59 +01:00
  • 1fd3f51cc5 Add markdown file explaining support for PowerShell Jan Kuehle 2018-12-17 23:20:45 +00:00
  • 0c8cc50fa8 Add basic PowerShell completions Jan Kuehle 2018-12-17 23:01:34 +00:00
  • 9d6c9b61b0 Add gardenctl to projects build using Cobra ialidzhikov 2019-04-14 21:35:42 +03:00
  • 97032908c6 Return nil error in validateRequiredFlags when help command Marco Davalos 2019-03-28 17:56:37 +01:00
  • 0a20c1e0ec add: user defined error function dannypsnl 2019-03-28 17:48:04 +08:00
  • 67fc4837d2 added variable to allow configuration of mousetrap message duration (#809) v0.0.4 Willi Eggeling 2019-03-21 01:05:52 +01:00
  • 5755ecf102 [TrivialPatches] Typos in README.md, fix and update CI, update projects list... (#840) umarcor 2019-03-20 22:21:26 +01:00
  • 37c2ef05ae use kyoh86/richgo to provide colored test outputs umarcor 2019-03-19 19:49:03 +01:00
  • c0ff9f1c25 fix: convert CRLF to LF when comparing files umarcor 2019-03-18 21:12:13 +01:00
  • 7a5404953c chore: update viper to v1.3.2 and go-md2man to v1.0.10 umarcor 2019-03-18 20:39:21 +01:00
  • 685e640f2e update(README.md): separate projects by commas, instead of using a list umarcor 2019-03-18 20:12:38 +01:00
  • 09c3b19b95 add mattermost-server as a project built with Cobra (#824) joshuabezaleel 2019-02-13 22:33:44 +07:00
  • ccef21e036 add uber/prototool as a project built with Cobra (#831) Peter Edge 2019-03-08 12:30:34 -05:00
  • 1bc7f67dee add istio to the list of projects built with Cobra (#786) praveensastry 2018-11-12 10:01:11 +11:00
  • 6da1f4abcb chore(travis): update shellcheck-docker to v0.6.0 (#839) umarcor 2019-03-18 17:39:45 +01:00
  • 9a856c2701 chore(travis): use language configuration list instead of explicit entries in matrix.include (#839) umarcor 2019-03-18 17:25:53 +01:00
  • 1820a06c59 chore(travis): move 'diff' job to separate stage in Travis (#839) umarcor 2019-03-18 17:23:22 +01:00
  • ee67eb4422 add go.mod and go.sum (#833) Peter Edge 2019-03-08 12:40:41 -05:00
  • bbec970304 fix(ci): use go vet, update to Go 1.12, update shellcheck to v0.4.6 (#832) Peter Edge 2019-03-08 12:35:27 -05:00
  • d1e8e8b3c0 update README.md (#826) linzhaoming 2019-02-17 14:57:17 +08:00
  • 5e9ccc4d64 remove redundant 'else' (#806) Sergey 2019-01-11 00:03:21 +05:00
  • 7bab206a70 command: fix typo in docstring of InheritedFlags (#779) Indradhanush Gupta 2018-10-30 13:54:56 -07:00
  • 0a6c06ed0b specify the color as the required arg (#777) jay vyas 2018-10-27 09:20:53 -04:00
  • 10db418b0a update Example in README.md (#769) Arief Rahmansyah 2018-10-18 23:31:18 +08:00
  • c6f4fd9ec0 chore(travis): update shellcheck-docker to v0.6.0 umarcor 2019-03-18 17:39:45 +01:00
  • a7af3e26ad feat(travis): run tests agains go 1.12.x umarcor 2019-03-18 17:02:32 +01:00
  • 8cc3a504e7 chore(travis): use language configuration list instead of explicit entries in matrix.include umarcor 2019-03-18 17:25:53 +01:00
  • 2a2175e903 chore(travis): move 'diff' job to separate stage in Travis umarcor 2019-03-18 17:23:22 +01:00
  • ce89e15071 fix(travis): execute 'go vet' instead of 'go tool vet' umarcor 2019-03-18 17:22:28 +01:00
  • ba1052d4cb Fix two word flags (#807) Daisuke Taniwaki 2019-03-11 21:55:09 +09:00
  • a82a3f5916 Add go.mod and go.sum Peter Edge 2019-03-08 12:40:41 -05:00
  • 1b9ca31bc5 Fix CI to use go vet and update to Go 1.12 Peter Edge 2019-03-08 12:35:27 -05:00
  • effd981d5b Add Prototool as a project built with Cobra Peter Edge 2019-03-08 12:30:34 -05:00
  • 410fe1a254 Derive zsh completion from bash completion Cornelius Weig 2019-02-23 00:59:59 +01:00
  • 12d6bd86cf Merge tag '0.0.6' into develop Brian Meyers 2019-02-22 15:52:26 -05:00
  • 01e6d77711
    Merge pull request #6 from OneCloudInc/release-0.0.6 Brian Meyers 2019-02-22 15:52:12 -05:00
  • 5cecced576 Use RunE Brian Meyers 2019-02-22 15:51:50 -05:00
  • b549b4ca19 Merge tag '0.0.5' into develop Brian Meyers 2019-02-22 14:20:44 -05:00
  • e4569a214a
    Merge pull request #5 from OneCloudInc/release-0.0.5 Brian Meyers 2019-02-22 14:20:26 -05:00
  • 96868d8f05 Only change the CLI tool to use OneCloudInc Brian Meyers 2019-02-22 14:20:00 -05:00
  • 8b91f1a653 Merge tag '0.0.4' into develop Brian Meyers 2019-02-22 13:43:40 -05:00
  • fe83a627d2
    Merge pull request #4 from OneCloudInc/release-0.0.4 Brian Meyers 2019-02-22 13:43:17 -05:00
  • 4b2965f3d6 Fixed tests and added dep Brian Meyers 2019-02-22 13:38:36 -05:00
  • 65c085b0b3
    Merge pull request #1 from OneCloudInc/feature-oc-generator Brian Meyers 2019-02-22 13:20:29 -05:00
  • b3a45b8407 Allow both persistent and local flags for root vs command. Removed default viper. Allow flags to be set on the rootCmd as well. Brian Meyers 2019-02-22 13:19:46 -05:00
  • bcc54ae73f Custom generator that will generate arguments and flags right from the command line Brian Meyers 2019-02-22 13:06:52 -05:00
  • 9224a9a8f3 Rename packages to use OneCloud Brian Meyers 2019-02-22 12:58:38 -05:00
  • a953d2898e Merge remote-tracking branch 'upstream/master' into required_flags_func @brxd 2019-02-19 09:12:52 -07:00
  • 562fec2fa8
    Update README.md linzhaoming 2019-02-17 14:57:17 +08:00
  • 51107bf5ae Adding Mattermost as Go project that is built using Cobra joshuabezaleel 2019-02-13 22:33:44 +07:00
  • 4eb5e0aeba Fix error formatting based on best practices from Code Review Comments CodeLingo Bot 2019-02-05 05:45:16 +00:00
  • 20a9b1acef Merge branch 'master' of github.com:spf13/cobra into custom-help-verb Chase Hutchins 2019-01-24 14:27:10 -07:00
  • bd50896c8d Merge branch 'custom-help-verb' of github.com:syntaqx/cobra into custom-help-verb Chase Hutchins 2019-01-24 14:02:32 -07:00
  • 346dd1da26 undo fmt Chase Hutchins 2019-01-24 14:02:26 -07:00
  • 9422ae6567 fmt even though I didnt touch this? Chase Hutchins 2019-01-24 13:58:49 -07:00
  • 64bd4318af move helpverb default higher in the execute stack Chase Hutchins 2019-01-24 13:56:59 -07:00
  • 191297c568 allow for a word other than "help" for the help command and flag Chase Hutchins 2019-01-24 13:51:50 -07:00
  • c7fb68aecc fixed typo in cobra readme artlovan 2019-01-17 21:31:16 -05:00
  • f334702cb2
    added variable to allow configuration of mousetrap message duration Willi Eggeling 2019-01-14 12:12:07 +01:00
  • b0588529e0
    Fix two word flags Daisuke Taniwaki 2019-01-13 00:56:19 +09:00
  • 492264d440 Remove redundant else Sergey 2019-01-11 00:03:21 +05:00
  • 7547e83b2d Run tests against go 1.11 and drop 1.9 (#737) Michael 2019-01-09 00:34:09 +00:00
  • 8da2943db0
    zsh: sort the commands to keep a determinist output Michael Muré 2018-12-27 20:08:32 +01:00
  • 28dd097db8 backwards conditional logic -_- Aaron Paz 2018-12-26 23:47:39 -08:00
  • 22a124de4a adding --force flag to initCmd Aaron Paz 2018-12-26 22:47:12 -08:00
  • 8e60c0514a Return nil by default in preRunE Wayne Warren 2018-12-20 10:28:19 -06:00
  • 77f5b8b4ec Fix preRunE return signature Wayne Warren 2018-12-20 10:26:54 -06:00
  • 380782a995 Fix OnInitializeE Wayne Warren 2018-12-20 10:24:59 -06:00
  • 4cf9a0c444 issue#798 support initializers that return error Wayne Warren 2018-12-20 10:21:06 -06:00
  • 86032b9bc7 756-vgo-support - fix formatting jharshman 2018-12-14 19:00:29 -08:00
  • 112b5c06b4 string not bool Joshua Harshman 2018-10-11 16:09:02 -07:00
  • dd934029fb 756-vgo-support - fix existing tests Joshua Harshman 2018-10-11 16:06:57 -07:00
  • ff6025496a remove comment Joshua Harshman 2018-10-11 16:00:53 -07:00
  • e570cad58a 756-vgo-support - add vgo bool flag Joshua Harshman 2018-10-11 11:38:30 -07:00
  • d1fed398ec Add go 1.11.x version Saddam H 2018-12-11 12:12:55 +06:00
  • d2d81d9a96 Fix too many underscore for __custom_func (#794) Daisuke Taniwaki 2018-11-27 22:31:06 +09:00
  • d7ba303ed4
    Fix typo of too many leading underscores in docs Daisuke Taniwaki 2018-11-27 16:59:25 +09:00
  • fac49b225d
    Fix too many underscore for __custom_func Daisuke Taniwaki 2018-11-27 16:02:37 +09:00
  • deacc2c027 Fixed Help not showing on non runnable command Vinicyus Macedo 2018-11-19 12:52:41 -02:00
  • e4ee09e8b2 Adding istio to the list of projects that use cobra praveensastry 2018-11-12 10:01:11 +11:00
  • acf2553c23 Adding istio to the projects that use cobra psastry 2018-11-12 09:55:50 +11:00
  • e2570c90ff Add setters for default help strings Andrew Meyer 2018-11-06 09:05:10 -06:00
  • dacc9a05e3 Have to CalledAs return the name the function was called as. Gautam Dey 2018-11-05 10:59:47 -08:00
  • 28c4487f58 Add a new ValidateRequiredFlagsFunc to Command to customize the required flag validation behavior. This is useful to customize the validation and messaging when you have to set, say, either flag1 or flag2, but not both. Burak Serdar 2018-11-02 09:12:17 -06:00
  • 964f12cf87
    command: Fix typo in docstring of InheritedFlags Indradhanush Gupta 2018-10-30 13:54:56 -07:00
  • b2f59f4947
    specify the color as the required arg jay vyas 2018-10-27 09:20:53 -04:00