Commit graph

  • caeed9f2a4
    Update powershell_completions.go Mavaddat Javid 2023-10-29 17:00:24 -04:00
  • 22953d8845
    Replace all non-alphanumerics in active help env var program prefix (#1940) Ville Skyttä 2023-10-29 20:06:51 +02:00
  • 00b68a1c26
    Add tests for flag completion registration (#2053) Marc Khouzam 2023-10-28 16:11:59 -04:00
  • b711e8760b
    Don't complete --help flag when flag parsing disabled (#2061) Marc Khouzam 2023-10-28 16:10:06 -04:00
  • d54a5abed2 Don't complete --help flag when flag parsing disabled Marc Khouzam 2023-10-27 09:44:35 -04:00
  • 8b1eba4761
    Fix linter errors (#2052) Marc Khouzam 2023-10-27 06:23:45 -04:00
  • 4e1197edf1 changed auto generation info line from header to italics Milan May'r 2023-10-25 12:33:08 -05:00
  • fedb5c67b6 changed autogeneration infoline from header to italics Milan May'r 2023-10-25 12:28:05 -05:00
  • f78d7d44a3 Another change in docs to mention non-ASCII-alphanumeric instead of just dash Ville Skyttä 2023-06-19 23:27:31 +03:00
  • a502bd1711 Replace all non-alphanumerics in active help env var program prefix Ville Skyttä 2023-03-28 21:09:50 +03:00
  • d2befe23ca
    Merge 5e0bbe8bdb into 4cafa37bc4 yiksanchan 2023-10-24 09:58:12 +08:00
  • 54fa8b5cae
    Merge ba5d4e2870 into 4cafa37bc4 Toni Kangas 2023-10-24 09:55:37 +08:00
  • 33d6f8409d Add tests for flag completion registration Marc Khouzam 2023-10-23 09:43:28 -04:00
  • 4cafa37bc4
    Allow running persistent run hooks of all parents (#2044) vkhoroz 2023-10-22 03:36:12 +03:00
  • 4614907bee Fix linter errors Marc Khouzam 2023-10-21 20:26:53 -04:00
  • 7ec494405e
    Powershell completion alias handling Casey Barton 2023-10-18 13:02:25 -04:00
  • f1f4087fc2
    Feature: allow running persistent run hooks of all parents Volodymyr Khoroz 2023-10-12 20:35:57 +03:00
  • 86e879bfa9
    fix(command): struct to pass maligned linter check danmx 2023-09-24 21:16:52 +02:00
  • 63a0032301
    feat(command): adding args to use line danmx 2022-08-18 10:28:13 +02:00
  • 5c962a221e
    build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.2 to 2.0.3 (#2047) dependabot[bot] 2023-10-16 10:50:33 +00:00
  • 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 +00:00
  • efe8fa3e44
    build(deps): bump actions/setup-go from 3 to 4 (#1934) dependabot[bot] 2023-10-15 11:16:50 +00:00
  • de76854134
    Merge branch 'spf13:main' into main Dean Eigenmann 2023-10-13 14:47:58 -05:00
  • 44242f9e60
    falgs are inherited, not global Lars Kajes 2023-10-11 14:44:08 +02:00
  • 5d16684e88
    fix inconsistencies in md generation Lars Kajes 2023-10-11 14:40:55 +02:00
  • 95d8a1e45d
    Add notes to doc on preRun and postRun condition (#2041) Haoming Meng 2023-10-09 07:50:40 -05:00
  • 8629031041 add notes to doc on preRun and postRun condition techming 2023-10-06 23:35:20 -05:00
  • 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 -05:00
  • 1adfacfe38 doc: added notes of prerRun and postRun condition techming 2023-10-06 23:22:53 -05:00
  • ed3cf74dbf doc: added notes of prerRun and postRun condition techming 2023-10-06 23:19:14 -05:00
  • 4585aea30f Use strings.Builder to construct suggestions Ville Skyttä 2023-10-05 23:54:53 +03:00
  • 3c47a5a9c8 Avoid some unnecessary looping Ville Skyttä 2023-10-05 23:51:52 +03:00
  • 34416a2637 Preallocate some slices and maps with known size Ville Skyttä 2023-10-05 23:48:03 +03:00
  • 3f1c31c21e Avoid redundant active help enablement evaluations Ville Skyttä 2023-05-10 00:03:16 +03:00
  • 79fb3dd0cf Avoid redundant completion output target evaluations Ville Skyttä 2023-05-10 00:00:43 +03:00
  • 1f495bb3c8 Avoid redundant string splits Ville Skyttä 2023-05-09 23:55:29 +03:00
  • 5975d90254 fix documentation of Command.SetOut method Kanak Singhal 2023-10-04 15:02:43 +00:00
  • 1374825960
    feat: create PrintOut() - deprecate Print() Tiago Carreira 2023-10-02 01:46:07 +01:00
  • e80bdb9a8c
    fix: give priority to new API for when getOut() Tiago Carreira 2023-10-02 01:45:00 +01:00
  • 2f70b7caa3
    refactor: rename out/err stream vars/funcs Tiago Carreira 2023-10-02 01:37:31 +01:00
  • 5a0bfd38d5
    fix: allows to capture cmd out/err Tiago Carreira 2023-07-22 22:59:47 +01:00
  • 5dad42575c
    Avoid infinitely walking up the command tree maxlandon 2023-09-30 20:48:28 +02:00
  • d6df128a74
    Merge branch 'main' into completion maxlandon 2023-09-30 18:46:07 +00:00
  • 4d3a6e1d56
    Merge master, and adapt flag completion getters maxlandon 2023-09-30 20:43:04 +02:00
  • 53fb4ebbd1
    Ensure all completion maps are initialized before use maxlandon 2023-09-30 18:30:43 +02:00
  • bd4d1655f6
    feat: add getters for flag completions (#1943) Alexandru-Claudius Virtopeanu 2023-09-26 03:04:25 +03:00
  • 50ba2caeb5 Move newline to inside the DisableAutoGenTag block Dan Ramich 2023-09-20 11:57:39 -06:00
  • eb30cc24d6
    build(deps): bump actions/checkout from 3 to 4 dependabot[bot] 2023-09-11 10:34:20 +00:00
  • c35d8811fb Support usage as plugin for tools like kubectl Nir Soffer 2023-08-16 19:21:17 +03:00
  • 0c72800b8d
    Customizable error message prefix (#2023) Souma 2023-09-09 02:29:06 +09:00
  • c24c3fdecf
    [revert] Crude change of c.ErrPrefix() 5ouma 2023-09-08 21:36:58 +09:00
  • 5dec565c90
    [fix] Forgot to change c.ErrPrefix() to cmd.ErrPrefix() Souma 2023-09-08 18:12:05 +09:00
  • f2b602c663
    Merge branch 'spf13:main' into 5ouma-errPrefix Souma 2023-09-08 18:09:54 +09:00
  • ed4583eb59
    [update] More tests that were requested 5ouma 2023-09-08 12:10:16 +09:00
  • fabc43c5eb
    [update] Several changes that were reviewed 5ouma 2023-09-08 11:32:04 +09:00
  • c5dacb3ea4
    ci: test golang 1.21 (#2024) Nuno Adrego 2023-09-08 01:30:51 +01:00
  • 33524ebc1a fix unit tests Jun Nishimura 2023-09-01 23:53:40 +09:00
  • 02094ac5c5 add error check to RemoveGroup command Jun Nishimura 2023-09-01 23:53:31 +09:00
  • da3c9eeebd
    [update] Test for SetErrPrefix() 5ouma 2023-09-01 15:31:11 +09:00
  • 973367b648
    ci: test golang 1.21 Nuno Adrego 2023-08-31 23:19:49 +01:00
  • a76559e04a
    [update] Doc to use errPrefix 5ouma 2023-09-01 00:06:32 +09:00
  • ff58b537c7
    [update] Use the prefix, Error: by default 5ouma 2023-08-31 21:39:37 +09:00
  • 48dabba4d3
    [add] The error message prefix Souma 2023-08-31 17:33:06 +09:00
  • 89c1e0df76 ci: add GitHub Actions workflow 'site' umarcor 2020-10-04 23:32:57 +02:00
  • 501f8c791b site: add gohugo configuration umarcor 2020-10-04 23:40:38 +02:00
  • cee7f37a01 golangci: maligned is archived umarcor 2022-08-22 02:56:08 +02:00
  • c056decb48 golangci: use 'revive' instead of 'golint' umarcor 2022-08-22 02:54:08 +02:00
  • 287f2e9923 golangci: update list of available linters umarcor 2022-08-22 02:49:19 +02:00
  • fca1d61528 golangci: enable 'gofmt' umarcor 2022-08-22 02:30:49 +02:00
  • 62eecc8175 golangci: enable 'typecheck' umarcor 2022-08-22 02:35:41 +02:00
  • 4e2204874e golangci: enable 'staticcheck' umarcor 2022-08-22 02:34:50 +02:00
  • fb85207e34 golangci: enable 'gosimple' umarcor 2022-08-22 02:29:06 +02:00
  • 285460dca6
    command: temporarily disable G602 due to securego/gosec#1005 (#2022) Unai Martinez-Corral 2023-08-29 16:04:59 +02:00
  • 5aed6f8ee4 command: temporarily disable G602 due to securego/gosec#1005 umarcor 2023-08-29 14:59:47 +02:00
  • 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 +00:00
  • 28c960bf7c
    build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 dependabot[bot] 2023-08-21 10:07:01 +00:00
  • f1f260eb59
    Don't use global map for flag completions. maxlandon 2023-08-08 04:14:47 +02:00
  • 08be2cb981 add unit tests Jun Nishimura 2023-07-27 23:52:11 +09:00
  • 8a2769858c remove group id of the help command and completion command Jun Nishimura 2023-07-27 23:51:46 +09:00
  • a2edfa4d9a update user_guide Jun Nishimura 2023-07-27 21:00:03 +09:00
  • fbdc1d8295 Merge branch 'main' into add_RemoveGroupMethod Jun Nishimura 2023-07-27 20:57:55 +09:00
  • 0d30d75e0d
    Merge f8b8914b8b into fd865a44e3 Erdal TAŞKESEN 2023-07-25 14:00:27 +08:00
  • fd865a44e3
    minor corrections to unit tests (#2003) Jun Nishimura 2023-07-23 20:31:55 +09:00
  • 69710310be minor corrections to unit tests Jun Nishimura 2023-07-23 16:04:55 +09:00
  • 9a4aaf6d9c tiny fix for TestRemoveParentPersistentArgs Jun Nishimura 2023-07-23 15:38:41 +09:00
  • eb493c9ca9 add unit tests Jun Nishimura 2023-07-23 15:37:05 +09:00
  • 6f7d88c48c perform Parse on lnpflags Jun Nishimura 2023-07-23 15:13:46 +09:00
  • b51dcf624c add lnpflags field to Command Jun Nishimura 2023-07-23 15:12:57 +09:00
  • 99d0be84df tiny fix for removeParentPersistentArgs Jun Nishimura 2023-07-22 22:57:41 +09:00
  • c67af4c687 changed so that flags in c.lflags refer to flags in c.flags Jun Nishimura 2023-07-22 17:25:36 +09:00
  • f15758ac15 debug to pass command unit tests Jun Nishimura 2023-07-22 15:59:25 +09:00
  • 200e518356 parse lflags Jun Nishimura 2023-07-22 14:55:03 +09:00
  • e587892673 all: refactor to use %q instead of "%s" Jes Cok 2023-07-21 13:04:44 +08:00
  • 60d056d157
    doc: fix typo, Deperecated -> Deprecated (#2000) gocurr 2023-07-20 23:27:44 +08:00
  • 54cf91e5c7 doc: fix typo, Deperecated -> Deprecated Jes Cok 2023-07-20 21:22:24 +08:00
  • 55ff048a8d parse local flags Jun Nishimura 2023-07-19 00:35:51 +09:00
  • 8bff6aff17 add new flag to lflags Jun Nishimura 2023-07-19 00:35:39 +09:00
  • 66b215ba18
    golangci: enable 'unused' and disable deprecated replaced by it (#1983) Unai Martinez-Corral 2023-07-18 15:51:36 +02:00
  • b1c5fd7740 golangci: enable 'unused' and disable deprecated replaced by it umarcor 2023-06-20 19:53:23 +02:00
  • 9c878d49b1 site: rework structure and headers umarcor 2020-10-05 01:00:12 +02:00