Commit graph

  • 0c653d6e38 Add Parent FlagSet fahed dorgaa 2022-09-05 13:06:57 +0000
  • 33b42465ed ci: add minimum GitHub token permissions for workflows Varun Sharma 2022-08-31 17:43:38 -0700
  • 8095ca31dd adjust docs umarcor 2022-08-30 19:57:51 +0200
  • 6863083cdd args_test: fix command passed to TestNoArgs_WithValid_WithInvalidArgs umarcor 2022-08-30 19:35:15 +0200
  • 4e31482378 args_test: specify 2 args instead of 3 in TestExactValidArgs_WithInvalidCount_WithInvalidArgs umarcor 2022-08-30 19:32:25 +0200
  • 83365ac14e args_test: specify 2 args instead of 3 in TestExactValidArgs_WithInvalidArgs umarcor 2022-08-30 19:31:37 +0200
  • b3982ec9bc args: inverse the methods in ExactValidArgs umarcor 2022-08-30 19:29:43 +0200
  • ec474022ff test combinations of args validators umarcor 2019-03-18 23:32:12 +0100
  • 45b20e4ecd deprecate ExactValidArgs in favour of MatchAll(OnlyValidArgs, ...) umarcor 2022-03-28 01:34:40 +0200
  • 0580724b5f
    With go 1.18, we must use go install for a binary (#1726) Marc Khouzam 2022-08-30 10:34:58 -0400
  • 2a7647ff46
    Clarify SetContext documentation (#1748) Paul Meyer 2022-08-30 04:12:56 +0200
  • abaa162a74 Document option to hide the default completion cmd Marc Khouzam 2022-08-18 15:24:40 -0400
  • 7045405250
    ci: test on Golang 1.19 (#1782) Unai Martinez-Corral 2022-08-30 02:35:16 +0100
  • d0d5d68eef
    Merge 75499b99cb into 22b617914c nestoroprysk 2022-08-29 10:12:56 +0900
  • 22b617914c
    fix: show flags that shadow parent persistent flag in child help (#1776) Brian Pursley 2022-08-28 12:46:39 -0400
  • 50a887cb66 fix: show flags that shadow parent persistent flag in child help Brian Pursley 2022-08-28 11:56:46 -0400
  • 220e00224c Add OnFinalize method Yann Soubeyrand 2020-07-14 19:15:52 +0200
  • d391ed8d85 ci/golangci-lint: use latest version available in setup-go's manifest umarcor 2022-08-22 01:04:31 +0200
  • 721fd1f19c Adds check-latest for setup-go action v3 John McBride 2022-06-15 16:11:15 -0600
  • 8b3f224c96 ci: run golangci-lint on golang 1.19 umarcor 2022-08-22 00:30:19 +0200
  • 0cb3a0a26d ci: test on Golang 1.19 umarcor 2022-08-22 00:29:56 +0200
  • 8825c7b3f9 feat: add '[args]' and 'Valid Args:' to --help umarcor 2019-03-19 19:41:09 +0100
  • a9dbe74c87 args_test: add TestArgs_Nil umarcor 2021-02-01 11:49:41 +0100
  • 64d7401852 args_test: use sub-tests for grouping based on the validator umarcor 2019-03-21 21:56:13 +0100
  • d507a44e7a args_test: style umarcor 2019-03-19 20:30:05 +0100
  • d4d0679f4b add expectError helper function to args_test umarcor 2019-03-19 00:45:32 +0100
  • 78048ea811 command/ValidateArgs: check ValidArgs regardless of Args being nil umarcor 2021-02-01 11:29:39 +0100
  • 2cd7871821 feat: generalize ValidArgs; use it implicitly with any validator umarcor 2019-03-18 23:32:12 +0100
  • cbd7c48951 deprecate ExactValidArgs in favour of MatchAll(OnlyValidArgs, ...) umarcor 2022-03-28 01:34:40 +0200
  • ef504a698b style(bash-v2): use herestring in activehelp extraction Ville Skyttä 2022-06-18 22:51:31 +0200
  • aa6017008a style(bash-v2): remove unnecessary trailing linefeed removal Ville Skyttä 2022-05-17 23:38:49 +0300
  • 966d0a8b85 style(bash-v2): use ${foo-} rather than ${foo:-} in emptiness check Ville Skyttä 2022-05-17 23:32:38 +0300
  • 933caf637f style(bash-v2): [[ ]] over [ ], == over =, remove unnecessary quoting Ville Skyttä 2022-05-17 23:31:04 +0300
  • 10da1a8996 style(bash-v2): remove unnecessary $ from array index variables Ville Skyttä 2022-05-17 23:28:02 +0300
  • 48a6fe5779 style(bash-v2): use arithmetic evaluation in numeric context Ville Skyttä 2022-05-17 23:26:41 +0300
  • ec6fe6b61c Add group flags knqyf263 2022-08-18 12:15:39 +0300
  • 571b3440d6
    Merge 15e2ae2ceb into dbf85f6104 Himadri Bhattacharjee 2022-08-14 20:42:51 +0900
  • dbf85f6104
    Update gopkg.in/yaml.v2 to gopkg.in/yaml.v3 (#1766) Tobias Klauser 2022-08-14 00:18:46 +0200
  • f911c0b89c
    fix(bash-v2): activeHelp length check syntax (#1762) Ville Skyttä 2022-08-14 00:44:47 +0300
  • 7790bf97fd
    fix: correct command path in see_also for YAML doc (#1771) Zoran Regvart 2022-08-13 23:31:45 +0200
  • 6bf8cd8582
    build(deps): bump github.com/inconshreveable/mousetrap (#1774) dependabot[bot] 2022-08-13 21:02:01 +0000
  • c19a6fab18
    RM-156177 Release v1.4.2 (#9) Joe Cotton 2022-08-11 12:58:05 -0400
  • ab6e601eaa
    build(deps): bump github.com/inconshreveable/mousetrap dependabot[bot] 2022-08-08 10:20:34 +0000
  • 965924ac89
    docs: add zitadel to the list (#1772) Florian Forster 2022-08-04 17:18:09 +0200
  • 0464e75c6c
    docs: add zitadel to the list Florian Forster 2022-08-04 16:11:56 +0200
  • e8f9808db6
    fix: correct command path in see_also for YAML doc Zoran Regvart 2022-08-04 15:46:04 +0200
  • be83846f84 ref: clean up lint error (#1759) plastikfan 2022-08-01 15:44:02 +0100
  • d5bea272b1 feat: optimise markflagsdependson/markflagdependsonany by removing specialStatusInfo (#1759) plastikfan 2022-07-29 16:54:54 +0100
  • 3ebb4c3c31 Merge branch 'master' into feat/add-markflagsdependenton plastikfan 2022-07-27 19:19:03 +0100
  • 3d2185c306 feat: add markflagsdependenton (#1739) plastikfan 2022-06-24 10:24:43 +0100
  • 85232277d6
    Update gopkg.in/yaml.v2 to gopkg.in/yaml.v3 Tobias Klauser 2022-07-26 14:12:47 +0200
  • 53c6d8ab13 fix(bash-v2): activeHelp length check syntax Ville Skyttä 2022-07-22 17:27:26 +0300
  • 162534f92f
    doc: Add Okteto for projects using Cobra (#1759) Javier López Barba 2022-07-20 15:45:07 +0200
  • e15a3dfae0
    doc: Add Okteto for projects using Cobra Javier López Barba 2022-07-20 10:21:59 +0200
  • 1b5d2a2128 Fix error message for NoArgs piroux 2022-07-16 12:16:33 +0200
  • f8b8914b8b
    Fix markdownlint errors at 'doc' Erdal TAŞKESEN 2022-07-03 17:45:45 +0300
  • 0bd365c14b
    Use consistent layout for Usage template Erdal TAŞKESEN 2022-07-08 07:12:17 +0300
  • 29e2eaa110
    Use consistent layout for Usage template Erdal TAŞKESEN 2022-07-08 06:45:50 +0300
  • a0aadc68eb
    Spelling for GitHub CLI (#1744) Ikko Ashimine 2022-07-07 13:54:19 +0900
  • d1fb50cf2c
    Update projects_using_cobra.md Ikko Ashimine 2022-07-07 11:06:35 +0900
  • a63d56feaf
    Fix markdownlint errors at 'doc' Erdal TAŞKESEN 2022-07-03 17:45:45 +0300
  • 41924bb825 Clarify SetContext documentation katexochen 2022-07-02 22:14:49 +0200
  • 15e2ae2ceb Added flags groups which are mutually exclusive but required Himadri Bhattacharjee 2022-07-02 03:34:23 +0000
  • 69083f81b2
    Add Cilium to projects using Cobra (#1745) Tobias Klauser 2022-06-28 23:19:33 +0200
  • 165be72ff6
    Add Cilium to projects using Cobra Tobias Klauser 2022-06-28 10:48:49 +0200
  • 13bb406184
    Update README.md Ikko Ashimine 2022-06-27 12:08:47 +0900
  • bba9331d4e
    doc: Add CloudQuery for projects using Cobra (#1742) Yevgeny Pats 2022-06-25 19:17:06 +0300
  • 405bdcdc4c Move CloudQuery to match alphabet order Yevgeny Pats 2022-06-24 20:21:54 +0000
  • d7a94b28a0
    doc: Add CloudQuery for projects using Cobra Yevgeny Pats 2022-06-23 19:54:51 +0300
  • 3d38d18a23
    Add KubeVirt as a project using cobra (#1741) Miguel Duarte Barroso 2022-06-23 17:36:12 +0200
  • 00a58e9aa3 Add KubeVirt as a project using cobra Miguel Duarte Barroso 2022-06-22 21:08:30 +0200
  • 06b06a9dc9
    Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (#1697) v1.5.0 dependabot[bot] 2022-06-20 20:06:17 -0600
  • 5f2ec3c897
    Update shell completion to respect flag groups (#1659) Marc Khouzam 2022-06-20 22:04:28 -0400
  • b9ca5949e2
    use errors.Is() to check for errors (#1730) Paul Holzinger 2022-06-21 04:02:33 +0200
  • ea94a3db55
    undefined or nil Args default to ArbitraryArgs (#1612) Unai Martinez-Corral 2022-06-21 03:00:50 +0100
  • ca500ea37d test(completion): test shorthand flag completion Denis Gukov 2022-06-16 15:41:20 +0500
  • 156691e8ab undefined or nil Args default to ArbitraryArgs umarcor 2022-02-24 21:57:31 +0100
  • 7c9831d376
    Fix handling of descriptions for bash v3 (#1735) Marc Khouzam 2022-06-20 00:11:21 -0400
  • 9b87f1e06b Fix handling of descriptions for bash v3 Marc Khouzam 2022-06-19 23:59:48 -0400
  • ed7bb9dda4
    Add unit test for fish completion (#1515) kida 2022-06-20 11:38:49 +0900
  • 9073d9cfaa add unit test kida 2021-10-25 16:36:12 +0900
  • 1ebb576c1d Update shell completion to respect flag groups Marc Khouzam 2022-04-08 16:23:36 -0400
  • b755f40ce7 feat(completion): support no-space completions for short flags tim 2022-06-17 12:23:23 +0500
  • e6ffcff2be feat(completion): support no-space completions for short flags tim 2022-06-17 11:51:08 +0500
  • 0c125f4ffe temp commit tim 2022-06-17 00:26:37 +0500
  • 8935a74081
    use errors.Is() to check for errors Paul Holzinger 2022-06-16 16:55:07 +0200
  • d1932e0934 feat(completion): support no space flag value completion Denis Gukov 2022-06-16 15:17:53 +0500
  • f464d6c82e
    Add Active Help support (#1482) Marc Khouzam 2022-06-15 20:08:16 -0400
  • 63143d01a1 Adds check-latest for setup-go action v3 John McBride 2022-06-15 16:11:15 -0600
  • 7dc8b004e6
    Bump actions/setup-go from 2 to 3 (#1660) dependabot[bot] 2022-06-15 16:08:55 -0600
  • aed0d98fb7 chore: rename SuggestionsMinimumDistance to SuggestionsMaximumDistance Nate Pinsky 2022-06-13 17:26:50 -0700
  • d90b117809 feat(completion): support no space format of short flags https://github.com/spf13/cobra/issues/1629 Denis Gukov 2022-06-13 22:26:13 +0500
  • 87ea1807f7
    Modify brew prefix path in macOS system (#1719) xuwu 2022-06-13 10:22:49 +0800
  • 1db55ea179 Only allow configuring ActiveHelp through env vars Marc Khouzam 2021-12-09 08:03:55 -0500
  • 25e8b5e735 Add support for ActiveHelp Marc Khouzam 2021-08-06 17:18:02 -0400
  • 7f3e13f388
    docs: update bash completion prefix xuwu 2022-06-13 09:29:42 +0800
  • 0bc8ff8f1e With go 1.18, we must use go install for a binary Marc Khouzam 2022-06-12 20:24:23 -0400
  • 823517c128
    add RequiredFlagsErrorFunc and FlagGroupsErrorFunc Sergey Vilgelm 2022-06-09 15:03:02 -0700
  • 5c62c6a057
    Use FlagErrorFunc for validateRequiredFlags and validateFlagGroups Sergey Vilgelm 2022-06-09 10:03:21 -0700
  • aed9e6d54a
    Update args.go Steven Zelek 2022-06-08 14:31:23 -0700