Commit graph

  • ae5480b1f8 Complete hidden commands flags and its subcommands Didier Roche 2019-10-25 17:30:57 +02:00
  • 77e4d5aecc Update md2man to v2.0.0 (#977) Peter Fern 2019-10-20 09:17:41 +11:00
  • 2a3a935663 Fix PrintErrln and PrintErrf to behave like PrintErr Jungho Ahn 2019-10-18 15:12:46 -07:00
  • 2f080248fa Update md2man to v2.0.0 Peter Fern 2019-10-14 14:33:27 +11:00
  • 8a4b46fadf update viper to v1.4.0 (#953) umarcor 2019-10-14 05:11:37 +02:00
  • c022f6fabd Update README.md (#944) XuZvvHYmZfYdWJNRunkJ 2019-10-07 14:41:51 -07:00
  • 48e6ac4718
    update doc w/ newer cmd/root.go example (#973) Joshua Harshman 2019-10-07 15:31:10 -06:00
  • 9fc0d920d7
    Check if root cmd is runnable and run if it is h0tw4t3r 2019-10-05 21:44:29 +02:00
  • c825536b7c Merge branch 'with_additional_help' of github.com:mescanne/cobra into with_additional_help Mark Scannell 2019-10-05 16:43:11 +01:00
  • d703b98665 Added tests for generating additional help topics Mark Scannell 2019-10-05 16:41:14 +01:00
  • 8bd8cc5b09 update doc w/ newer cmd/root.go example Josh Harshman 2019-10-04 11:07:05 -06:00
  • 3a8f0055e6
    Adjust bash completion instructions for compatibility with bash 3.2 Mislav Marohnić 2019-10-04 14:03:48 +02:00
  • 3745fcd262
    add goreportcard to readme (#971) Joshua Harshman 2019-10-03 15:53:10 -06:00
  • b6e2e0af0a add goreportcard to readme Josh Harshman 2019-10-03 13:47:18 -06:00
  • 8bd5a5381f Add ArgDescriptionForUseLine to add custom suffix to use line Randy Stauner 2019-10-02 19:32:16 -07:00
  • ace5fe16e9 Generating additional help topics when generating markdown Mark Scannell 2019-09-28 22:00:54 +01:00
  • c5be1eed76 Make OnCommandNotFound independable of SilenceErrors flag Milan Jovanovic 2019-09-22 15:44:44 +01:00
  • 90e9437a89 Correct code formatting Milan Jovanovic 2019-09-19 12:55:12 +01:00
  • 0c47c471c4 Added ability to do custom stuff when command is not found Milan Jovanovic 2019-09-19 12:48:23 +01:00
  • b3a633bf64
    Bump module import from github.com/spf13/pflag@v1.0.3 Conner Fromknecht 2019-09-17 13:49:57 -07:00
  • a4bc1a0fef update viper to v1.4.0 umarcor 2019-09-08 15:46:30 +02:00
  • 43e9830af3 update go-yaml to v3 umarcor 2019-09-08 15:50:22 +02:00
  • 19cf35ea77 fix: ensure that testproject is removed even after a failure (#948) umarcor 2019-09-17 17:02:42 +02:00
  • ccf60c76a2 cobra/cmd: add getProject test func umarcor 2019-09-17 14:55:21 +02:00
  • c35f8b03e4 style: simply defer os.RemoveAll umarcor 2019-09-08 15:40:54 +02:00
  • 7a0cf95b2a fix: defer licenseFile umarcor 2019-09-05 09:42:47 +02:00
  • 891d81cc84 fix: ensure that testproject is removed even after a failure umarcor 2019-09-05 09:04:48 +02:00
  • 606aa5792c Used goimports to fix import order (#912) Christian Muehlhaeuser 2019-09-17 04:17:19 +02:00
  • 4f2877d412 clean(travis): remove shellcheck from before_install (#947) umarcor 2019-09-17 04:08:40 +02:00
  • 3eb6fdcbde clean(travis): remove shellcheck from before_install umarcor 2019-09-05 07:25:18 +02:00
  • 602fc8927c fix: gitignore should not ignore subdir 'cobra' umarcor 2019-09-05 07:17:05 +02:00
  • b1dca3f9a7
    Update README.md XuZvvHYmZfYdWJNRunkJ 2019-09-03 00:11:39 -07:00
  • 1605787112 Generate markdown for help topics Mark Scannell 2019-09-02 21:51:00 +01:00
  • 595c4b61d2 Update .gitignore to track cobra subdirectory Rodolfo Carvalho 2019-08-23 22:05:18 +02:00
  • 0756728547 Fix template format andig 2019-08-23 17:35:47 +02:00
  • 0da6ddb27b
    Errors go to stderr as per POSIX Alessio Treglia 2019-06-26 10:08:12 +01:00
  • 59bb8be6ad
    Fix stderr printing functions Alessio Treglia 2019-06-24 08:29:37 +01:00
  • b97eb31e3d
    Correct documentation for InOrStdin Daniel Esponda 2019-08-07 09:08:06 -05:00
  • b80588d523 fix undefined cfgFile in documentation (#924) Gregoire Mahe 2019-08-05 17:56:17 +02:00
  • 6e380ca748 Use background context instead of nil Alexandr Burdiyan 2019-07-03 12:19:15 +02:00
  • 0c5ef6bdd0 Add support for context.Context Alexandr Burdiyan 2019-06-21 14:16:02 +02:00
  • 993cc5372a Adjustments per PR review feedback from @bogem Bruce Downs 2019-08-01 09:47:14 -07:00
  • d85196337c Correct all complaints from goimports Bruce Downs 2019-07-30 15:32:58 -07:00
  • 51f06c7dd1 Correct all complaints from golint Bruce Downs 2019-07-30 15:26:11 -07:00
  • 9334a46bd6 Return an error in the case of unrunnable subcommand Bruce Downs 2019-07-29 23:36:50 -07:00
  • 9552679939 Add idiomatic handling of go error in distinct main func Bruce Downs 2019-07-29 23:34:42 -07:00
  • af29f95b81 Add ignore of cobra posix binary and all of intellij generated files Bruce Downs 2019-07-29 23:32:32 -07:00
  • dfb2abaa2b Adjustments per PR review feedback from @bogem Bruce Downs 2019-08-01 09:47:14 -07:00
  • ccc8b0da4e fix undefined cfgFile in documentation Gregoire Mahe 2019-08-01 17:12:32 +02:00
  • 22cf1631ac fix comment 63isOK 2019-07-31 08:58:24 +00:00
  • 40b62f616f Correct all complaints from goimports Bruce Downs 2019-07-30 15:32:58 -07:00
  • 15a2441afc Correct all complaints from golint Bruce Downs 2019-07-30 15:26:11 -07:00
  • 8b780f474d Return an error in the case of unrunnable subcommand Bruce Downs 2019-07-29 23:36:50 -07:00
  • d0edbca143 Add idiomatic handling of go error in distinct main func Bruce Downs 2019-07-29 23:34:42 -07:00
  • 30c25f325f Add ignore of cobra posix binary and all of intellij generated files Bruce Downs 2019-07-29 23:32:32 -07:00
  • 1c9c46d5c1
    Update Generator Docs to reflect changes brought in #817 (#904) Joshua Harshman 2019-07-24 10:10:51 -06:00
  • 7a37ccbc89
    Fix cobra generator readme file XSB 2019-07-22 12:10:07 +02:00
  • b0b1a62e78
    Simplified assignment operation Christian Muehlhaeuser 2019-07-19 06:10:02 +02:00
  • 609f2c8632
    Used goimports to fix import order Christian Muehlhaeuser 2019-07-19 06:07:33 +02:00
  • 90647c5640
    Update README.md Zane Hitchcox 2019-07-18 13:17:39 -04:00
  • 70d6c546ca Update Generator Docs to reflect changes brought in #817 jharshman 2019-07-10 11:10:24 -06:00
  • 2d7544ebde fix missing newline in cmd/add (#905) umarcor 2019-07-15 17:44:15 +02:00
  • f4c3014e5a Use os.UserHomeDir() in document micnncim 2019-07-14 21:57:22 +09:00
  • 92ff7fb526
    fix missing newline in cmd/add umarcor 2019-07-13 22:30:52 +02:00
  • 9a31ddff0e Add Linkerd to list of projects using Cobra (#892) Carol A. Scott 2019-07-12 08:55:10 -07:00
  • af9d2bfa41 Merge branch 'master' of github.com:bonfy/cobra bonfy 2019-07-12 10:37:26 +08:00
  • 70ca0b2f14 add os.PathSeparator to the return value of findCmdDir func bonfy 2018-04-12 16:05:36 +08:00
  • bacf94f3d5 fix bonfy 2019-07-12 10:02:57 +08:00
  • ccc29509df change findCmdSuffix to findCmdPath bonfy 2019-07-12 09:55:40 +08:00
  • 4b2dc6f8e0
    Merge pull request #2 from spf13/master Carol A. Scott 2019-07-11 16:37:39 -07:00
  • 64872dd43f
    Add Linkerd to list of projects using Cobra rsteube 2019-07-11 20:18:47 +02:00
  • 4d1820be43 go fmt rsteube 2019-06-12 16:34:04 +02:00
  • 4c5491dbc9 added custom completions for zsh rsteube 2019-06-12 16:20:33 +02:00
  • f153050c5a added '[' ']' to zshCompQuoteFlagDescription rsteube 2018-11-07 14:19:54 +01:00
  • 50ef1a2a5a added compdef call to support direct sourcing rsteube 2019-06-12 23:20:23 +02:00
  • 21f39ca07e bash: fix shellcheck errors (#889) rsteube 2019-07-11 20:18:47 +02:00
  • 219242841f fix comment bonfy 2019-07-11 09:42:20 +08:00
  • 020823d1b0 bash: fix shellcheck errors rsteube 2019-07-10 21:50:57 +02:00
  • 6d52be5440 add persistent flag in the MarkRequired exemple as their is diffrences between Local and Persistent flags. Guillaume Dormoy 2019-07-08 16:51:48 +02:00
  • 3fea27d230
    Allow a default function to argument Chmouel Boudjnah 2019-07-05 07:42:52 +02:00
  • 7ab9095c84
    cobra init no longer works as documented Daz Wilkin 2019-06-17 14:14:33 -07:00
  • 85c9f3065c Add framework for dynamic tab completions Paul Chesnais 2019-06-11 18:46:51 -07:00
  • de3880c956 Use os.UserHomeDir() for Go version 1.12+ Mikhail Grachev 2019-04-18 14:07:05 +03:00
  • 454ab37ace
    Remove "Lesser" from header for GPL-2.0 template Steve Winslow 2019-06-10 14:36:52 -04:00
  • 6c4d2f76cb
    Update README.md Nick Busey 2019-06-10 08:06:27 -06:00
  • 6eb960b3cb
    Merge branch 'master' into master Alex 2019-06-07 17:11:37 +02:00
  • f2b07da1e2 fixing linter issues v0.0.5 0.0.5 Juan Leni 2019-05-15 18:53:39 +02:00
  • b635726081 considering stderr in UsageString Juan Leni 2019-05-15 18:49:16 +02:00
  • e35034f0da Add tests Alessio Treglia 2019-04-30 18:41:56 +01:00
  • cb27ce11fb Deprecate and maintain backwards compatibility Juan Leni 2019-02-13 06:32:16 +01:00
  • 618bc00f80 Allow for explicit output to err/stderr Juan Leni 2019-02-11 16:06:55 +01:00
  • 0ea93dd60d Fixed linter issues Juan Leni 2019-02-11 08:22:54 +01:00
  • 4a716d101b Extending redirection to stdout, stderr, stdin Juan Leni 2019-02-11 07:10:59 +01:00
  • 5f23f55c81 Update README.md Go Frendi Gunawan 2019-06-04 11:25:58 +07:00
  • b748db4358
    Merge branch 'master' into add-cosmos-sdk-to-projects-using-cobra Steve Francia 2019-06-07 10:41:35 -04:00
  • 9eb9f5c66b Add gardenctl to projects build using Cobra ialidzhikov 2019-04-14 21:35:42 +03:00
  • 2411ac592a remove unused struct fields Joshua Harshman 2019-05-07 11:22:21 -06:00
  • 984374f5b6 clean up testproject files after test executes jharshman 2019-01-30 20:09:57 -08:00
  • 11aa612384 test add jharshman 2019-01-30 19:47:38 -08:00
  • 303a3e5160 vgo - strip out unused methods jharshman 2019-01-30 01:49:57 -08:00