Commit graph

  • 8d84e2e222
    Make sure we quote brackets when generating zsh completion Chmouel Boudjnah 2019-07-04 16:16:22 +0200
  • a419fb9dfa Add MarkPersistentFlagRequired to README Marcin Iwinski 2020-02-11 13:36:15 +0100
  • 91783a06a4 Output usage hint for both unknown subcommand and unknown flag in the same way Daniel Grimm 2020-01-29 10:33:56 +0100
  • 3bba6a2481 Omit LICENSE file when licence is set to none Rodolfo Carvalho 2019-08-23 23:35:14 +0200
  • 748b14cfe6 Write temporary test files in temp directory Rodolfo Carvalho 2019-08-23 22:55:01 +0200
  • 24481f04da
    Copy parsed flag values when constructing LocalFlags() Benjamin Congdon 2020-01-15 19:01:26 -0800
  • 488513389b fix tests and ignore EOF 左晓杰 2020-01-10 00:18:50 +0800
  • fcf1f3cf76 support ask and custom quesion 左晓杰 2020-01-09 22:26:43 +0800
  • b81f43e24e
    Add Aliases completions on ZSH Chmouel Boudjnah 2020-01-07 09:35:27 +0100
  • 4fe7dea31c ci: add go 1.13.x umarcor 2019-06-07 23:05:00 +0200
  • 2d75916030 fix gosec G204 umarcor 2019-10-10 01:23:31 +0200
  • 31f8371c47 fix: add cobra/cmd/testproject to gitignore umarcor 2019-09-05 08:46:37 +0200
  • 576d6e4fb0 style(command_test) umarcor 2019-06-07 21:57:22 +0200
  • cc49679e54 drop mitchellh/go-homedir (#853), print to stderr in boilerplate (#774) umarcor 2019-06-07 21:48:51 +0200
  • 4c12cfebd1 add .gitattributes umarcor 2019-06-07 20:22:07 +0200
  • fa70495d5a doc: check error return values umarcor 2019-06-07 20:04:49 +0200
  • dcf0d55266 doc_test: add 'er' umarcor 2019-06-07 21:55:25 +0200
  • df76712df4 doc: add utils 'er' and 'wrStringAndCheck' umarcor 2019-06-07 20:03:27 +0200
  • e8777b0680 remove unused 'writeToFile', 'commentifyString', 'stringInStringSlice' and 'exists' umarcor 2019-06-07 20:01:18 +0200
  • 467feac068 remove unused 'isEmpty', 'executeTemplate', 'writeStringToFile', 'update' and 'checkLackFiles' umarcor 2019-06-07 19:56:26 +0200
  • 4656c87941 cobra: check error return values umarcor 2019-06-07 19:13:15 +0200
  • c312af1143 remove unused field 'tc' umarcor 2019-06-07 19:33:07 +0200
  • 26d6a0220b remove unused function 'checkStringOmits' umarcor 2019-06-07 19:30:30 +0200
  • 0be19cdea6 make 'one two' a constant umarcor 2019-06-07 19:27:42 +0200
  • 826340688f make string ''\)\n' a constant and check error umarcor 2019-06-07 18:52:28 +0200
  • d6568bad2e handle error return values umarcor 2019-06-07 18:38:49 +0200
  • 7b62ee10c2 add helpers: 'er', 'Er' and 'WrStringAndCheck', use 'io.StringWriter' umarcor 2019-06-07 19:17:26 +0200
  • 44c8ae4518 reduce size of struct umarcor 2019-06-07 18:54:40 +0200
  • 84e7706be4 use sort.Strings(...) instead of sort.Sort(sort.StringSlice(...)) umarcor 2019-06-07 18:37:33 +0200
  • 37b6a19612 feat(travis-ci): use golangci-lint umarcor 2019-06-07 18:33:29 +0200
  • 89c7ffb512 Bump year on golden files (#1010) Nickolas Kraus 2020-01-06 12:10:57 -0600
  • ffd392d9c1 Bump year on golden files NickolasHKraus 2020-01-03 06:04:46 -0600
  • bf26895664 Fix regression when calling *_custom_func (#1001) Marc Khouzam 2019-12-26 12:55:42 -0500
  • d234c0b441 doc: add example code of generating Zsh completion autopp 2019-12-24 09:37:17 +0900
  • 447f182a9d
    format tpl/main.go templates (#980) Joshua Harshman 2019-12-23 13:51:40 -0700
  • 0d9d2d46f3 Revert change so help is printed on stdout again (#1004) Marc Khouzam 2019-12-23 13:38:24 -0500
  • e8c1cda21c format tpl/main.go templates jharshman 2019-10-19 16:38:58 -0600
  • aa2cd0c372 Revert change so help is printed on stdout again Marc Khouzam 2019-12-22 12:06:01 -0500
  • f302021988 Fix regression when calling *_custom_func Marc Khouzam 2019-12-11 23:16:21 -0500
  • c23151b7f7
    Fix InOrStdin comment Randy Stauner 2019-12-02 09:14:51 -0700
  • b04b5bfc50 substitute wrong word in md_docs (#998) Stefano Guerrini 2019-12-02 14:04:30 +0100
  • 1dd0ece8ab substitute wrong word in md_docs Stefano Guerrini 2019-12-01 18:45:13 +0100
  • 6d6cf530da
    Add short version flag -v when not otherwise set Dave Henderson 2019-11-25 20:07:34 -0500
  • 9f733e130e
    Update README.md Erik Aaron Hansen 2019-11-13 22:19:59 +0100
  • 49d40cbf0d
    update why-not-lgpl to its canonical link Loo Zheng Yuan 2019-11-12 10:50:41 +0800
  • a1ab9bd29b
    Add gomplate to list of projects using Cobra Dave Henderson 2019-11-10 13:44:47 -0500
  • 9b21ae8ced
    Add Mercure in the list of projects Kévin Dunglas 2019-11-08 01:03:49 +0100
  • ae5480b1f8 Complete hidden commands flags and its subcommands Didier Roche 2019-10-25 17:30:57 +0200
  • 77e4d5aecc Update md2man to v2.0.0 (#977) Peter Fern 2019-10-20 09:17:41 +1100
  • 2a3a935663 Fix PrintErrln and PrintErrf to behave like PrintErr Jungho Ahn 2019-10-18 15:12:46 -0700
  • 2f080248fa Update md2man to v2.0.0 Peter Fern 2019-10-14 14:33:27 +1100
  • 8a4b46fadf update viper to v1.4.0 (#953) umarcor 2019-10-14 05:11:37 +0200
  • c022f6fabd Update README.md (#944) XuZvvHYmZfYdWJNRunkJ 2019-10-07 14:41:51 -0700
  • 48e6ac4718
    update doc w/ newer cmd/root.go example (#973) Joshua Harshman 2019-10-07 15:31:10 -0600
  • 9fc0d920d7
    Check if root cmd is runnable and run if it is h0tw4t3r 2019-10-05 21:44:29 +0200
  • c825536b7c Merge branch 'with_additional_help' of github.com:mescanne/cobra into with_additional_help Mark Scannell 2019-10-05 16:43:11 +0100
  • d703b98665 Added tests for generating additional help topics Mark Scannell 2019-10-05 16:41:14 +0100
  • 8bd8cc5b09 update doc w/ newer cmd/root.go example Josh Harshman 2019-10-04 11:07:05 -0600
  • 3a8f0055e6
    Adjust bash completion instructions for compatibility with bash 3.2 Mislav Marohnić 2019-10-04 14:03:48 +0200
  • 3745fcd262
    add goreportcard to readme (#971) Joshua Harshman 2019-10-03 15:53:10 -0600
  • b6e2e0af0a add goreportcard to readme Josh Harshman 2019-10-03 13:47:18 -0600
  • 8bd5a5381f Add ArgDescriptionForUseLine to add custom suffix to use line Randy Stauner 2019-10-02 19:32:16 -0700
  • ace5fe16e9 Generating additional help topics when generating markdown Mark Scannell 2019-09-28 22:00:54 +0100
  • c5be1eed76 Make OnCommandNotFound independable of SilenceErrors flag Milan Jovanovic 2019-09-22 15:44:44 +0100
  • 90e9437a89 Correct code formatting Milan Jovanovic 2019-09-19 12:55:12 +0100
  • 0c47c471c4 Added ability to do custom stuff when command is not found Milan Jovanovic 2019-09-19 12:48:23 +0100
  • b3a633bf64
    Bump module import from github.com/spf13/pflag@v1.0.3 Conner Fromknecht 2019-09-17 13:49:57 -0700
  • a4bc1a0fef update viper to v1.4.0 umarcor 2019-09-08 15:46:30 +0200
  • 43e9830af3 update go-yaml to v3 umarcor 2019-09-08 15:50:22 +0200
  • 19cf35ea77 fix: ensure that testproject is removed even after a failure (#948) umarcor 2019-09-17 17:02:42 +0200
  • ccf60c76a2 cobra/cmd: add getProject test func umarcor 2019-09-17 14:55:21 +0200
  • c35f8b03e4 style: simply defer os.RemoveAll umarcor 2019-09-08 15:40:54 +0200
  • 7a0cf95b2a fix: defer licenseFile umarcor 2019-09-05 09:42:47 +0200
  • 891d81cc84 fix: ensure that testproject is removed even after a failure umarcor 2019-09-05 09:04:48 +0200
  • 606aa5792c Used goimports to fix import order (#912) Christian Muehlhaeuser 2019-09-17 04:17:19 +0200
  • 4f2877d412 clean(travis): remove shellcheck from before_install (#947) umarcor 2019-09-17 04:08:40 +0200
  • 3eb6fdcbde clean(travis): remove shellcheck from before_install umarcor 2019-09-05 07:25:18 +0200
  • 602fc8927c fix: gitignore should not ignore subdir 'cobra' umarcor 2019-09-05 07:17:05 +0200
  • b1dca3f9a7
    Update README.md XuZvvHYmZfYdWJNRunkJ 2019-09-03 00:11:39 -0700
  • 1605787112 Generate markdown for help topics Mark Scannell 2019-09-02 21:51:00 +0100
  • 595c4b61d2 Update .gitignore to track cobra subdirectory Rodolfo Carvalho 2019-08-23 22:05:18 +0200
  • 0756728547 Fix template format andig 2019-08-23 17:35:47 +0200
  • 0da6ddb27b
    Errors go to stderr as per POSIX Alessio Treglia 2019-06-26 10:08:12 +0100
  • 59bb8be6ad
    Fix stderr printing functions Alessio Treglia 2019-06-24 08:29:37 +0100
  • b97eb31e3d
    Correct documentation for InOrStdin Daniel Esponda 2019-08-07 09:08:06 -0500
  • b80588d523 fix undefined cfgFile in documentation (#924) Gregoire Mahe 2019-08-05 17:56:17 +0200
  • 6e380ca748 Use background context instead of nil Alexandr Burdiyan 2019-07-03 12:19:15 +0200
  • 0c5ef6bdd0 Add support for context.Context Alexandr Burdiyan 2019-06-21 14:16:02 +0200
  • 993cc5372a Adjustments per PR review feedback from @bogem Bruce Downs 2019-08-01 09:47:14 -0700
  • d85196337c Correct all complaints from goimports Bruce Downs 2019-07-30 15:32:58 -0700
  • 51f06c7dd1 Correct all complaints from golint Bruce Downs 2019-07-30 15:26:11 -0700
  • 9334a46bd6 Return an error in the case of unrunnable subcommand Bruce Downs 2019-07-29 23:36:50 -0700
  • 9552679939 Add idiomatic handling of go error in distinct main func Bruce Downs 2019-07-29 23:34:42 -0700
  • af29f95b81 Add ignore of cobra posix binary and all of intellij generated files Bruce Downs 2019-07-29 23:32:32 -0700
  • dfb2abaa2b Adjustments per PR review feedback from @bogem Bruce Downs 2019-08-01 09:47:14 -0700
  • ccc8b0da4e fix undefined cfgFile in documentation Gregoire Mahe 2019-08-01 17:12:32 +0200
  • 22cf1631ac fix comment 63isOK 2019-07-31 08:58:24 +0000
  • 40b62f616f Correct all complaints from goimports Bruce Downs 2019-07-30 15:32:58 -0700
  • 15a2441afc Correct all complaints from golint Bruce Downs 2019-07-30 15:26:11 -0700
  • 8b780f474d Return an error in the case of unrunnable subcommand Bruce Downs 2019-07-29 23:36:50 -0700