Commit graph

  • 957f4eb69c Add general purpose config env var getter Ville Skyttä 2023-11-26 16:49:29 +0200
  • 934601d616 fix: reset flags' value to default if flags have been parsed levisyin 2023-11-26 16:00:15 +0800
  • 3d8ac432bd
    Micro-optimizations (#1957) Ville Skyttä 2023-11-23 19:24:33 +0200
  • 99e4b7e11e Clarify documentation for completion Marc Khouzam 2023-11-23 10:43:31 -0500
  • b516e74458 Child command context is not updated when global context changed #2077 Varconst 2023-11-23 10:31:14 -0500
  • 15823e76b9 Print ActiveHelp for bash along other completions Marc Khouzam 2023-11-09 15:45:42 -0500
  • 9ede36eb73
    Merge 2b6e651ee4 into 283e32d889 Guilhem Lettron 2023-11-17 14:59:07 +0100
  • 1bd0dd1d30 adjust readme writing error Wiliam V. Joaquim 2023-11-15 12:48:15 -0300
  • 43b590284a
    Merge 9d4b134da1 into 283e32d889 Antoine Goutenoir 2023-11-13 09:25:09 -0800
  • 283e32d889
    Add LXC to the list of projects using cobra (#2071) SwagPack 2023-11-13 22:25:06 +0530
  • e793932324
    Add LXC to the list SwagPack 2023-11-13 14:43:13 +0530
  • e00551d418 Document how to create a plugin Nir Soffer 2023-11-12 15:55:40 +0200
  • e368063333 Fix help text for runnable plugin command Nir Soffer 2023-11-12 20:07:59 +0200
  • 87f8a108b2 Fix help text for plugins Nir Soffer 2023-11-12 17:20:47 +0200
  • b28f2326ca
    Revert back to 'Global Flags' Lars Kajes 2023-11-06 09:34:40 +0100
  • 9d4b134da1 chore: update go.sum with so much bloat Goutte 2023-11-05 00:34:23 +0100
  • cdb680ac1e fix(i18n): lint, review and clean up a little Goutte 2023-04-05 05:55:48 +0200
  • 775014c459 fix(i18n): remove an ugly hack Goutte 2023-04-04 11:39:07 +0200
  • 102ab5b544 fix(i18n): add a test for plurality of required flags Goutte 2023-04-04 10:40:59 +0200
  • 64f5c4f405 fix(i18n): test assertions and plurality Goutte 2023-04-04 10:37:26 +0200
  • ca6ece94df feat(i18n): translate more user-facing messages Goutte 2023-04-04 10:33:43 +0200
  • 0abea784c4 feat(i18n): translate the usage template as well Goutte 2023-04-04 09:04:29 +0200
  • d6ed0816a9 feat(i18n): add translations for args validation Goutte 2023-04-04 05:33:08 +0200
  • 2e90e51710 feat(i18n): add make i18n_extract and make i18n_merge Goutte 2023-04-04 04:46:33 +0200
  • cb76695584 feat(i18n): add golang.org/x/text that we need for some reason Goutte 2023-04-04 04:35:32 +0200
  • 6853f280ed feat(i18n): translate command error and usage tip Goutte 2023-04-04 04:34:22 +0200
  • ccbdd223d1 feat(i18n): draft of i18n with embedded TOML files Goutte 2023-04-04 04:17:45 +0200
  • 52e7b45312
    flags: clarify documentation that LocalFlags related function do not modify the state Dmytro Milinevskyi 2023-11-04 00:51:27 +0100
  • c4c04c1252
    add whitespace for clarity Milan Aleks 2023-11-03 15:00:44 -0500
  • 5aadb0d2bd
    Fix a logic lookup bug that was kind enough to surface at the good moment. maxlandon 2023-11-02 17:43:35 +0100
  • f5848b646b
    Rename GetFlagCompletionFuncByName() for flag names lookup maxlandon 2023-11-02 17:22:44 +0100
  • e7f13701e3
    Merge branch 'main' into completion maxlandon 2023-11-02 16:20:41 +0000
  • a0a6ae020b
    Improve API to get flag completion function (#2063) v1.8.0 Marc Khouzam 2023-11-02 11:23:08 -0400
  • 1548134ccb
    Remove useless duplicate import maxlandon 2023-11-02 15:34:36 +0100
  • 74f1665f72 Improve API to get flag completion function Marc Khouzam 2023-11-02 10:05:48 -0400
  • 69578f24ad
    Pass all tests by using correct flagComp lookups in completion command code. maxlandon 2023-11-02 14:54:55 +0100
  • 340cb4c7a3
    Fix compilation issues and remove commented code maxlandon 2023-11-02 14:39:11 +0100
  • 13d042d545
    Merge branch 'main' into completion maxlandon 2023-11-02 14:22:13 +0100
  • 890302a35f
    Support usage as plugin for tools like kubectl (#2018) Nir Soffer 2023-11-02 14:15:26 +0200
  • 955cac7eb9
    ignore resolve errors Mavaddat Javid 2023-10-30 11:48:03 -0400
  • 94243fef09
    need description property Mavaddat Javid 2023-10-30 11:44:11 -0400
  • 8b4835d0a9
    Merge branch 'spf13:main' into patch-1 Mavaddat Javid 2023-10-30 11:03:27 -0400
  • 48cea5c87b
    build(deps): bump actions/checkout from 3 to 4 (#2028) dependabot[bot] 2023-10-30 10:21:48 +0000
  • c901861b50
    Update powershell_completions.go Mavaddat Javid 2023-10-29 18:47:11 -0400
  • caeed9f2a4
    Update powershell_completions.go Mavaddat Javid 2023-10-29 17:00:24 -0400
  • 22953d8845
    Replace all non-alphanumerics in active help env var program prefix (#1940) Ville Skyttä 2023-10-29 20:06:51 +0200
  • 00b68a1c26
    Add tests for flag completion registration (#2053) Marc Khouzam 2023-10-28 16:11:59 -0400
  • b711e8760b
    Don't complete --help flag when flag parsing disabled (#2061) Marc Khouzam 2023-10-28 16:10:06 -0400
  • d54a5abed2 Don't complete --help flag when flag parsing disabled Marc Khouzam 2023-10-27 09:44:35 -0400
  • 8b1eba4761
    Fix linter errors (#2052) Marc Khouzam 2023-10-27 06:23:45 -0400
  • 4e1197edf1 changed auto generation info line from header to italics Milan May'r 2023-10-25 12:33:08 -0500
  • fedb5c67b6 changed autogeneration infoline from header to italics Milan May'r 2023-10-25 12:28:05 -0500
  • f78d7d44a3 Another change in docs to mention non-ASCII-alphanumeric instead of just dash Ville Skyttä 2023-06-19 23:27:31 +0300
  • a502bd1711 Replace all non-alphanumerics in active help env var program prefix Ville Skyttä 2023-03-28 21:09:50 +0300
  • d2befe23ca
    Merge 5e0bbe8bdb into 4cafa37bc4 yiksanchan 2023-10-24 09:58:12 +0800
  • 54fa8b5cae
    Merge ba5d4e2870 into 4cafa37bc4 Toni Kangas 2023-10-24 09:55:37 +0800
  • 33d6f8409d Add tests for flag completion registration Marc Khouzam 2023-10-23 09:43:28 -0400
  • 4cafa37bc4
    Allow running persistent run hooks of all parents (#2044) vkhoroz 2023-10-22 03:36:12 +0300
  • 4614907bee Fix linter errors Marc Khouzam 2023-10-21 20:26:53 -0400
  • 7ec494405e
    Powershell completion alias handling Casey Barton 2023-10-18 13:02:25 -0400
  • f1f4087fc2
    Feature: allow running persistent run hooks of all parents Volodymyr Khoroz 2023-10-12 20:35:57 +0300
  • 86e879bfa9
    fix(command): struct to pass maligned linter check danmx 2023-09-24 21:16:52 +0200
  • 63a0032301
    feat(command): adding args to use line danmx 2022-08-18 10:28:13 +0200
  • 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 +0000
  • 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