Commit graph

  • 493df59e42 chore: remove repetitive words racerole 2024-03-12 16:34:41 +08:00
  • a30cee5e5a
    build(deps): bump actions/cache from 3 to 4 (#2102) dependabot[bot] 2024-03-11 19:36:37 -06:00
  • f34069ccf5
    build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 (#2108) dependabot[bot] 2024-03-11 19:35:05 -06:00
  • 33ce8a4e78
    Update README.md with proper install command as earlier cmd is deprecated Bhargav 2024-03-09 23:42:29 +05:30
  • 2485f00b27 fix: remove deprecated io/ioutils package pedromotita 2024-03-08 11:11:46 -03:00
  • bd2655e76c
    Add Incus to the list of projects using Cobra (#2118) montag451 2024-03-08 01:36:58 +01:00
  • 5dd28285dd
    Add Incus to the list of projects using Cobra montag451 2024-03-07 21:47:46 +01:00
  • e9498ae28a feat: add flag help groups pedromotita 2024-03-07 15:21:31 -03:00
  • b46708d4d1
    ci: test golang 1.22 damas 2024-02-27 13:25:02 +00:00
  • 6390763171 Fixed typo in user guide Sean Pino 2024-02-20 13:05:52 -05:00
  • 0967a36905 simplify mark flags Sean Pino 2024-02-20 10:54:19 -05:00
  • b19c5d4ab1 Multiple Required Flags Sean Pino 2024-02-20 10:38:54 -05:00
  • ff88331e1f
    build(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 dependabot[bot] 2024-02-12 10:51:47 +00:00
  • 9867fb647f Show the actual available flags in useline Lisa Ugray 2024-02-01 12:08:03 -05:00
  • 5a79d44792
    build(deps): bump actions/cache from 3 to 4 dependabot[bot] 2024-01-22 10:34:39 +00:00
  • 1bfcd7838d feat: add flag prerequisite check sam80180 2024-01-19 01:13:03 +08:00
  • db66481060 Enable gosimple, no new findings to address Ville Skyttä 2024-01-15 23:46:37 +02:00
  • d8cfa4eb68 Address gocritic findings, enable it Ville Skyttä 2024-01-15 23:45:42 +02:00
  • bcfcff729e
    Add Taikun CloudWorks to list of projects (#2098) Radek Smid 2024-01-15 14:38:50 +01:00
  • 698a219cc1
    Add Taikun CloudWorks to list of projects Radek Smid 2024-01-15 08:16:32 +01:00
  • 399779240e doc: Improve the WithUsage example. Florian Forster 2024-01-12 09:13:41 +01:00
  • 4cba342aae feat: Add the WithUsage function. Florian Forster 2024-01-12 08:49:07 +01:00
  • 4fb0a66a34
    flags: clarify documentation that LocalFlags related function do not modify the state (#2064) Dmytro Milinevskyi 2024-01-06 22:49:13 +01:00
  • d35fd5fad3
    Merge branch 'spf13:main' into dm/local-flags-doc Dmytro Milinevskyi 2024-01-06 18:14:14 +01:00
  • 51056406ff
    flags: clarify documentation that LocalFlags related function do not modify the state Dmytro Milinevskyi 2024-01-06 18:09:15 +01:00
  • 637ba7bbc1
    Revert "flags: clarify documentation that LocalFlags related function do not modify the state" Dmytro Milinevskyi 2024-01-06 18:06:53 +01:00
  • 0dec88e793
    Add tests for funcs in cobra.go (#2094) Denis 2023-12-30 16:40:15 +03:00
  • 8623dcfff8 changed the TestStringInSlice Denis Korovin 2023-12-30 16:11:48 +03:00
  • eb22f6c157 changed the tests Denis Korovin 2023-12-30 11:54:09 +03:00
  • 7fdb732a47 Add test for func in cobra.go Denis Korovin 2023-12-28 15:50:00 +03:00
  • cbcf75eab9
    [chore]: update projects using cobra (#2093) Case Wylie 2023-12-27 21:16:29 -05:00
  • 1dace9a013
    [chore]: update projects using cobra Case Wylie 2023-12-27 13:46:07 -05:00
  • 199b7abe12
    build(deps): bump actions/labeler from 4 to 5 (#2086) dependabot[bot] 2023-12-23 14:52:45 -05:00
  • 49061ee7a3 Revert "switch trigger event to test" Marc Khouzam 2023-12-23 14:47:26 -05:00
  • 70348785f7 Update labeler configuration for v5 Marc Khouzam 2023-12-23 14:44:40 -05:00
  • 1246b457b9 switch trigger event to test Marc Khouzam 2023-12-23 14:13:34 -05:00
  • c5775311c0 build(deps): bump actions/labeler from 4 to 5 dependabot[bot] 2023-12-11 10:06:31 +00:00
  • 531ce793e3 Remove extra actions/checkout Marc Khouzam 2023-12-23 10:11:53 -05:00
  • c054701f6a build(deps): bump actions/setup-go from 4 to 5 dependabot[bot] 2023-12-11 10:06:36 +00:00
  • 956fb277c3 Remove extra actions/checkout Marc Khouzam 2023-12-23 10:11:53 -05:00
  • 50291d14ea make ci lint happy levisyin 2023-12-18 16:21:51 +08:00
  • 41227856cd Document how to create a plugin Nir Soffer 2023-11-12 15:55:40 +02:00
  • a73b9c391a Fix help text for runnable plugin command Nir Soffer 2023-11-12 20:07:59 +02:00
  • df547f5fc6 Fix help text for plugins Nir Soffer 2023-11-12 17:20:47 +02:00
  • e63925d321
    Add env variable to suppress completion descriptions on create (#1938) Ville Skyttä 2023-12-17 20:50:59 +02:00
  • 08e49f5d41
    Merge 9a4aaf6d9c into 236f3c0418 Jun Nishimura 2023-12-16 21:21:02 +09:00
  • 86cb007ab4
    Merge 9c878d49b1 into 236f3c0418 Unai Martinez-Corral 2023-12-16 21:18:25 +09:00
  • 236f3c0418
    Update projects_using_cobra.md (#2089) Marcus Kohlberg 2023-12-12 17:26:29 +01:00
  • b93a1b6286
    Update projects_using_cobra.md Marcus Kohlberg 2023-12-12 14:05:00 +01:00
  • 1107319c75 Add description disabling test cases Ville Skyttä 2023-12-11 22:18:46 +02:00
  • 9740ecead4 Distinguish env var getter test cases better Ville Skyttä 2023-12-11 18:22:19 +02:00
  • c96f1a622a Defer unsetting test env vars properly Ville Skyttä 2023-12-11 18:06:40 +02:00
  • 138b0ab964 Use strconv.ParseBool to parse descriptions state from env Ville Skyttä 2023-12-11 18:04:40 +02:00
  • 7aa559d693 Make getEnvConfig private Ville Skyttä 2023-12-11 17:37:09 +02:00
  • ddad7c0887
    build(deps): bump actions/setup-go from 4 to 5 dependabot[bot] 2023-12-11 10:06:36 +00:00
  • 03ef288abc
    Add a Data map[string]any field to store arbitrary data for a command. maxlandon 2023-12-04 08:30:39 +01:00
  • 97b70019e9 Make use of the general purpose config env var getter in active help Ville Skyttä 2023-10-24 23:36:49 +03:00
  • 957f4eb69c Add general purpose config env var getter Ville Skyttä 2023-11-26 16:49:29 +02:00
  • 934601d616 fix: reset flags' value to default if flags have been parsed levisyin 2023-11-26 16:00:15 +08:00
  • 3d8ac432bd
    Micro-optimizations (#1957) Ville Skyttä 2023-11-23 19:24:33 +02:00
  • 99e4b7e11e Clarify documentation for completion Marc Khouzam 2023-11-23 10:43:31 -05:00
  • b516e74458 Child command context is not updated when global context changed #2077 Varconst 2023-11-23 10:31:14 -05:00
  • 9ede36eb73
    Merge 2b6e651ee4 into 283e32d889 Guilhem Lettron 2023-11-17 14:59:07 +01:00
  • 1bd0dd1d30 adjust readme writing error Wiliam V. Joaquim 2023-11-15 12:48:15 -03:00
  • 43b590284a
    Merge 9d4b134da1 into 283e32d889 Antoine Goutenoir 2023-11-13 09:25:09 -08:00
  • 283e32d889
    Add LXC to the list of projects using cobra (#2071) SwagPack 2023-11-13 22:25:06 +05:30
  • e793932324
    Add LXC to the list SwagPack 2023-11-13 14:43:13 +05:30
  • e00551d418 Document how to create a plugin Nir Soffer 2023-11-12 15:55:40 +02:00
  • e368063333 Fix help text for runnable plugin command Nir Soffer 2023-11-12 20:07:59 +02:00
  • 87f8a108b2 Fix help text for plugins Nir Soffer 2023-11-12 17:20:47 +02:00
  • b28f2326ca
    Revert back to 'Global Flags' Lars Kajes 2023-11-06 09:34:40 +01:00
  • 9d4b134da1 chore: update go.sum with so much bloat Goutte 2023-11-05 00:34:23 +01:00
  • cdb680ac1e fix(i18n): lint, review and clean up a little Goutte 2023-04-05 05:55:48 +02:00
  • 775014c459 fix(i18n): remove an ugly hack Goutte 2023-04-04 11:39:07 +02:00
  • 102ab5b544 fix(i18n): add a test for plurality of required flags Goutte 2023-04-04 10:40:59 +02:00
  • 64f5c4f405 fix(i18n): test assertions and plurality Goutte 2023-04-04 10:37:26 +02:00
  • ca6ece94df feat(i18n): translate more user-facing messages Goutte 2023-04-04 10:33:43 +02:00
  • 0abea784c4 feat(i18n): translate the usage template as well Goutte 2023-04-04 09:04:29 +02:00
  • d6ed0816a9 feat(i18n): add translations for args validation Goutte 2023-04-04 05:33:08 +02:00
  • 2e90e51710 feat(i18n): add make i18n_extract and make i18n_merge Goutte 2023-04-04 04:46:33 +02:00
  • cb76695584 feat(i18n): add golang.org/x/text that we need for some reason Goutte 2023-04-04 04:35:32 +02:00
  • 6853f280ed feat(i18n): translate command error and usage tip Goutte 2023-04-04 04:34:22 +02:00
  • ccbdd223d1 feat(i18n): draft of i18n with embedded TOML files Goutte 2023-04-04 04:17:45 +02:00
  • 52e7b45312
    flags: clarify documentation that LocalFlags related function do not modify the state Dmytro Milinevskyi 2023-11-04 00:51:27 +01:00
  • c4c04c1252
    add whitespace for clarity Milan Aleks 2023-11-03 15:00:44 -05:00
  • 5aadb0d2bd
    Fix a logic lookup bug that was kind enough to surface at the good moment. maxlandon 2023-11-02 17:43:35 +01:00
  • f5848b646b
    Rename GetFlagCompletionFuncByName() for flag names lookup maxlandon 2023-11-02 17:22:44 +01:00
  • e7f13701e3
    Merge branch 'main' into completion maxlandon 2023-11-02 16:20:41 +00:00
  • a0a6ae020b
    Improve API to get flag completion function (#2063) v1.8.0 Marc Khouzam 2023-11-02 11:23:08 -04:00
  • 1548134ccb
    Remove useless duplicate import maxlandon 2023-11-02 15:34:36 +01:00
  • 74f1665f72 Improve API to get flag completion function Marc Khouzam 2023-11-02 10:05:48 -04:00
  • 69578f24ad
    Pass all tests by using correct flagComp lookups in completion command code. maxlandon 2023-11-02 14:54:55 +01:00
  • 340cb4c7a3
    Fix compilation issues and remove commented code maxlandon 2023-11-02 14:39:11 +01:00
  • 13d042d545
    Merge branch 'main' into completion maxlandon 2023-11-02 14:22:13 +01:00
  • 890302a35f
    Support usage as plugin for tools like kubectl (#2018) Nir Soffer 2023-11-02 14:15:26 +02:00
  • 955cac7eb9
    ignore resolve errors Mavaddat Javid 2023-10-30 11:48:03 -04:00
  • 94243fef09
    need description property Mavaddat Javid 2023-10-30 11:44:11 -04:00
  • 8b4835d0a9
    Merge branch 'spf13:main' into patch-1 Mavaddat Javid 2023-10-30 11:03:27 -04:00
  • 48cea5c87b
    build(deps): bump actions/checkout from 3 to 4 (#2028) dependabot[bot] 2023-10-30 10:21:48 +00:00
  • c901861b50
    Update powershell_completions.go Mavaddat Javid 2023-10-29 18:47:11 -04:00