Commit graph

  • 014e6f47d6
    build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.2 to 2.0.3 dependabot[bot] 2023-10-16 10:20:58 +0000
  • efe8fa3e44
    build(deps): bump actions/setup-go from 3 to 4 (#1934) dependabot[bot] 2023-10-15 11:16:50 +0000
  • de76854134
    Merge branch 'spf13:main' into main Dean Eigenmann 2023-10-13 14:47:58 -0500
  • 44242f9e60
    falgs are inherited, not global Lars Kajes 2023-10-11 14:44:08 +0200
  • 5d16684e88
    fix inconsistencies in md generation Lars Kajes 2023-10-11 14:40:55 +0200
  • 95d8a1e45d
    Add notes to doc on preRun and postRun condition (#2041) Haoming Meng 2023-10-09 07:50:40 -0500
  • 8629031041 add notes to doc on preRun and postRun condition techming 2023-10-06 23:35:20 -0500
  • 2c9e75ef2d Merge branch 'add-notes-to-preRun-functions' of github.com:Techming/cobra into add-notes-to-preRun-functions techming 2023-10-06 23:24:39 -0500
  • 1adfacfe38 doc: added notes of prerRun and postRun condition techming 2023-10-06 23:22:53 -0500
  • ed3cf74dbf doc: added notes of prerRun and postRun condition techming 2023-10-06 23:19:14 -0500
  • 4585aea30f Use strings.Builder to construct suggestions Ville Skyttä 2023-10-05 23:54:53 +0300
  • 3c47a5a9c8 Avoid some unnecessary looping Ville Skyttä 2023-10-05 23:51:52 +0300
  • 34416a2637 Preallocate some slices and maps with known size Ville Skyttä 2023-10-05 23:48:03 +0300
  • 3f1c31c21e Avoid redundant active help enablement evaluations Ville Skyttä 2023-05-10 00:03:16 +0300
  • 79fb3dd0cf Avoid redundant completion output target evaluations Ville Skyttä 2023-05-10 00:00:43 +0300
  • 1f495bb3c8 Avoid redundant string splits Ville Skyttä 2023-05-09 23:55:29 +0300
  • 5975d90254 fix documentation of Command.SetOut method Kanak Singhal 2023-10-04 15:02:43 +0000
  • 1374825960
    feat: create PrintOut() - deprecate Print() Tiago Carreira 2023-10-02 01:46:07 +0100
  • e80bdb9a8c
    fix: give priority to new API for when getOut() Tiago Carreira 2023-10-02 01:45:00 +0100
  • 2f70b7caa3
    refactor: rename out/err stream vars/funcs Tiago Carreira 2023-10-02 01:37:31 +0100
  • 5a0bfd38d5
    fix: allows to capture cmd out/err Tiago Carreira 2023-07-22 22:59:47 +0100
  • 5dad42575c
    Avoid infinitely walking up the command tree maxlandon 2023-09-30 20:48:28 +0200
  • d6df128a74
    Merge branch 'main' into completion maxlandon 2023-09-30 18:46:07 +0000
  • 4d3a6e1d56
    Merge master, and adapt flag completion getters maxlandon 2023-09-30 20:43:04 +0200
  • 53fb4ebbd1
    Ensure all completion maps are initialized before use maxlandon 2023-09-30 18:30:43 +0200
  • bd4d1655f6
    feat: add getters for flag completions (#1943) Alexandru-Claudius Virtopeanu 2023-09-26 03:04:25 +0300
  • 50ba2caeb5 Move newline to inside the DisableAutoGenTag block Dan Ramich 2023-09-20 11:57:39 -0600
  • eb30cc24d6
    build(deps): bump actions/checkout from 3 to 4 dependabot[bot] 2023-09-11 10:34:20 +0000
  • c35d8811fb Support usage as plugin for tools like kubectl Nir Soffer 2023-08-16 19:21:17 +0300
  • 0c72800b8d
    Customizable error message prefix (#2023) Souma 2023-09-09 02:29:06 +0900
  • c24c3fdecf
    [revert] Crude change of c.ErrPrefix() 5ouma 2023-09-08 21:36:58 +0900
  • 5dec565c90
    [fix] Forgot to change c.ErrPrefix() to cmd.ErrPrefix() Souma 2023-09-08 18:12:05 +0900
  • f2b602c663
    Merge branch 'spf13:main' into 5ouma-errPrefix Souma 2023-09-08 18:09:54 +0900
  • ed4583eb59
    [update] More tests that were requested 5ouma 2023-09-08 12:10:16 +0900
  • fabc43c5eb
    [update] Several changes that were reviewed 5ouma 2023-09-08 11:32:04 +0900
  • c5dacb3ea4
    ci: test golang 1.21 (#2024) Nuno Adrego 2023-09-08 01:30:51 +0100
  • 33524ebc1a fix unit tests Jun Nishimura 2023-09-01 23:53:40 +0900
  • 02094ac5c5 add error check to RemoveGroup command Jun Nishimura 2023-09-01 23:53:31 +0900
  • da3c9eeebd
    [update] Test for SetErrPrefix() 5ouma 2023-09-01 15:31:11 +0900
  • 973367b648
    ci: test golang 1.21 Nuno Adrego 2023-08-31 23:19:49 +0100
  • a76559e04a
    [update] Doc to use errPrefix 5ouma 2023-09-01 00:06:32 +0900
  • ff58b537c7
    [update] Use the prefix, Error: by default 5ouma 2023-08-31 21:39:37 +0900
  • 48dabba4d3
    [add] The error message prefix Souma 2023-08-31 17:33:06 +0900
  • 89c1e0df76 ci: add GitHub Actions workflow 'site' umarcor 2020-10-04 23:32:57 +0200
  • 501f8c791b site: add gohugo configuration umarcor 2020-10-04 23:40:38 +0200
  • cee7f37a01 golangci: maligned is archived umarcor 2022-08-22 02:56:08 +0200
  • c056decb48 golangci: use 'revive' instead of 'golint' umarcor 2022-08-22 02:54:08 +0200
  • 287f2e9923 golangci: update list of available linters umarcor 2022-08-22 02:49:19 +0200
  • fca1d61528 golangci: enable 'gofmt' umarcor 2022-08-22 02:30:49 +0200
  • 62eecc8175 golangci: enable 'typecheck' umarcor 2022-08-22 02:35:41 +0200
  • 4e2204874e golangci: enable 'staticcheck' umarcor 2022-08-22 02:34:50 +0200
  • fb85207e34 golangci: enable 'gosimple' umarcor 2022-08-22 02:29:06 +0200
  • 285460dca6
    command: temporarily disable G602 due to securego/gosec#1005 (#2022) Unai Martinez-Corral 2023-08-29 16:04:59 +0200
  • 5aed6f8ee4 command: temporarily disable G602 due to securego/gosec#1005 umarcor 2023-08-29 14:59:47 +0200
  • 4955da7c11
    build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 (#2021) dependabot[bot] 2023-08-28 18:53:34 +0000
  • 28c960bf7c
    build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 dependabot[bot] 2023-08-21 10:07:01 +0000
  • f1f260eb59
    Don't use global map for flag completions. maxlandon 2023-08-08 04:14:47 +0200
  • 08be2cb981 add unit tests Jun Nishimura 2023-07-27 23:52:11 +0900
  • 8a2769858c remove group id of the help command and completion command Jun Nishimura 2023-07-27 23:51:46 +0900
  • a2edfa4d9a update user_guide Jun Nishimura 2023-07-27 21:00:03 +0900
  • fbdc1d8295 Merge branch 'main' into add_RemoveGroupMethod Jun Nishimura 2023-07-27 20:57:55 +0900
  • 0d30d75e0d
    Merge f8b8914b8b into fd865a44e3 Erdal TAŞKESEN 2023-07-25 14:00:27 +0800
  • fd865a44e3
    minor corrections to unit tests (#2003) Jun Nishimura 2023-07-23 20:31:55 +0900
  • 69710310be minor corrections to unit tests Jun Nishimura 2023-07-23 16:04:55 +0900
  • 9a4aaf6d9c tiny fix for TestRemoveParentPersistentArgs Jun Nishimura 2023-07-23 15:38:41 +0900
  • eb493c9ca9 add unit tests Jun Nishimura 2023-07-23 15:37:05 +0900
  • 6f7d88c48c perform Parse on lnpflags Jun Nishimura 2023-07-23 15:13:46 +0900
  • b51dcf624c add lnpflags field to Command Jun Nishimura 2023-07-23 15:12:57 +0900
  • 99d0be84df tiny fix for removeParentPersistentArgs Jun Nishimura 2023-07-22 22:57:41 +0900
  • c67af4c687 changed so that flags in c.lflags refer to flags in c.flags Jun Nishimura 2023-07-22 17:25:36 +0900
  • f15758ac15 debug to pass command unit tests Jun Nishimura 2023-07-22 15:59:25 +0900
  • 200e518356 parse lflags Jun Nishimura 2023-07-22 14:55:03 +0900
  • e587892673 all: refactor to use %q instead of "%s" Jes Cok 2023-07-21 13:04:44 +0800
  • 60d056d157
    doc: fix typo, Deperecated -> Deprecated (#2000) gocurr 2023-07-20 23:27:44 +0800
  • 54cf91e5c7 doc: fix typo, Deperecated -> Deprecated Jes Cok 2023-07-20 21:22:24 +0800
  • 55ff048a8d parse local flags Jun Nishimura 2023-07-19 00:35:51 +0900
  • 8bff6aff17 add new flag to lflags Jun Nishimura 2023-07-19 00:35:39 +0900
  • 66b215ba18
    golangci: enable 'unused' and disable deprecated replaced by it (#1983) Unai Martinez-Corral 2023-07-18 15:51:36 +0200
  • b1c5fd7740 golangci: enable 'unused' and disable deprecated replaced by it umarcor 2023-06-20 19:53:23 +0200
  • 9c878d49b1 site: rework structure and headers umarcor 2020-10-05 01:00:12 +0200
  • a3c9f45b00 ci: add GitHub Actions workflow 'site' umarcor 2020-10-04 23:32:57 +0200
  • 1a7286a8af site: add gohugo configuration umarcor 2020-10-04 23:40:38 +0200
  • c81c46a015
    Add 'one required flag' group (#1952) Martijn Evers 2023-07-16 18:38:22 +0200
  • 186ab8ddda update user_guid Jun Nishimura 2023-07-17 01:13:56 +0900
  • 5bbc67713e add unit tests for command.RemoveGroup Jun Nishimura 2023-07-16 19:43:38 +0900
  • 5943edc0db add RemoveGroup method for Command Jun Nishimura 2023-07-16 19:43:22 +0900
  • 7aa1511926
    Fix typo Martijn Evers 2023-07-16 09:54:20 +0200
  • dd99cf1e46 Update user guide for one-required groups Evers, Martijn 2023-07-15 09:45:23 +0200
  • 6f3b98345c
    Merge branch 'spf13:main' into one-required-flaggroup Martijn Evers 2023-07-15 09:44:20 +0200
  • f3125ff6fa define trueString constant Jun Nishimura 2023-07-15 00:56:13 +0900
  • 46a2ba8c41 fix completion command: use PersistentPreRunE instead of PersistentPreRun Jun Nishimura 2023-07-14 23:50:49 +0900
  • b370e7b9af fix help command: use PersistentPreRunE instead of PersistentPreRun Jun Nishimura 2023-07-14 23:50:21 +0900
  • 06d37a0a72 Add new tests: TestCompletionForOneRequiredGroupFlags Evers, Martijn 2023-07-14 08:34:32 +0200
  • 3bb59c6775 add TestPersistentPreRunHooksForCompletionCommand Jun Nishimura 2023-07-14 00:39:35 +0900
  • ba4e21df7a add TestPersistentPreRunHooksForHelpCommand Jun Nishimura 2023-07-14 00:39:10 +0900
  • ef1328f8cf call Root PersistentPreRun on Completion Command Jun Nishimura 2023-07-14 00:38:29 +0900
  • 2d1eeaf169 call Root PersitentPreRun on HelpCommand Jun Nishimura 2023-07-14 00:38:08 +0900
  • 94a3cb1439 add PersistentPreRun for completion command Jun Nishimura 2023-07-11 00:05:27 +0900
  • 4b81cd58b2 add PersistentPreRun for help command Jun Nishimura 2023-07-11 00:02:09 +0900
  • 10b0388a6e add test to check required flags will be ignored for bash, zsh, fish, powershell completion Jun Nishimura 2023-07-09 16:12:28 +0900