Commit graph

  • 1f5bfa181b Code review fixes - seeding random number generator and handling error with setting header Ryan Curtin 2021-12-16 17:03:32 -05:00
  • 1223d49a62 Fixes issue references Ryan Curtin 2021-12-16 14:39:36 -05:00
  • ef632ed1e1 Converting cobra to use OneCloudInc/cobra in all cases Ryan Curtin 2021-12-16 14:27:35 -05:00
  • c21dc0fc86 Fixes CircleCI Ryan Curtin 2021-12-16 14:13:53 -05:00
  • 2a36c3f409 Explicitly sending JSON request Ryan Curtin 2021-12-16 14:02:52 -05:00
  • c921a1f977 bump viper to 1.10.1 umarcor 2021-11-20 06:49:12 +01:00
  • b430be08ed Ensures that payload is built correctly Ryan Curtin 2021-12-14 17:03:56 -05:00
  • f927bb8b1f Adds test for reaper decryptor Ryan Curtin 2021-12-14 16:58:15 -05:00
  • 93ca442bab Adds the ability to decrypt arguments using the reaper service Ryan Curtin 2021-12-14 16:47:22 -05:00
  • 178edbb247
    Bump github.com/spf13/viper from 1.9.0 to 1.10.0 (#1561) v1.3.0 dependabot[bot] 2021-12-14 11:22:51 -07:00
  • 9054739e08
    Remove __complete cmd for program without subcmds (#1563) Marc Khouzam 2021-12-14 13:22:22 -05:00
  • c79b2dd3dc Remove __complete cmd for program without subcmds Marc Khouzam 2021-12-14 07:16:21 -05:00
  • 828fed51cc
    Bump github.com/spf13/viper from 1.9.0 to 1.10.0 dependabot[bot] 2021-12-13 10:28:28 +00:00
  • e8f7a16e26
    Bump actions/stale from 1 to 4.1.0 dependabot[bot] 2021-12-13 10:18:16 +00:00
  • c7cee2aba3 feat(completion): add default completion hidden if there are no subcommands Ville Skyttä 2021-07-10 12:03:08 +03:00
  • a27fd0d95b feat(completion): add option to create default command alone Ville Skyttä 2021-05-06 16:49:39 +03:00
  • bb5a299a8e
    add version to install command axel simon 2021-12-10 13:43:52 +00:00
  • 19c9c74384
    Always include the os package import when generating the root command (#1557) John McBride 2021-12-09 14:47:27 -07:00
  • 03c62a4f98 Always include the os package import when generating the root command John McBride 2021-12-09 10:57:13 -07:00
  • 9439d8696c Add SetContext tests joshcarp 2021-12-09 06:51:07 +11:00
  • b956a889bd ci: add workflow_dispatch (#1387) umarcor 2021-03-12 05:43:10 +01:00
  • 7cd01b3643 feat: make InitDefaultCompletionCmd public (#1467) Gustavo Bazan 2021-08-03 12:37:19 +01:00
  • 6675f2ae25 args_test: add TestArgs_Nil umarcor 2021-02-01 11:49:41 +01:00
  • a2f84c8568 args_test: use sub-tests for grouping based on the validator umarcor 2019-03-21 21:56:13 +01:00
  • 0807dcbb57 args_test: style umarcor 2019-03-19 20:30:05 +01:00
  • c9b43b7eae add expectError helper function to args_test umarcor 2019-03-19 00:45:32 +01:00
  • cea5d74d57 command/ValidateArgs: check ValidArgs regardless of Args being nil umarcor 2021-02-01 11:29:39 +01:00
  • cf1c00d205 feat: generalize ValidArgs; use it implicitly with any validator (#841) umarcor 2019-03-18 23:32:12 +01:00
  • 01e05b8ea1
    Bump github.com/spf13/viper from 1.8.1 to 1.9.0 (#1554) dependabot[bot] 2021-12-08 11:56:37 -07:00
  • 646dbde559
    Bump github.com/spf13/viper from 1.8.1 to 1.9.0 dependabot[bot] 2021-12-08 13:43:55 +00:00
  • 219b420599
    Bump actions/stale from 1 to 4 dependabot[bot] 2021-12-08 13:38:04 +00:00
  • 36bff0a4d5
    fix root.go.golden (#1552) Unai Martinez-Corral 2021-12-07 23:24:06 +00:00
  • 87cc2eb264 fix root.go.golden umarcor 2021-12-08 00:17:42 +01:00
  • 1854bb5c96
    Fix some typos (mostly found by codespell) (#1514) Stefan Weil 2021-12-08 00:06:52 +01:00
  • ff2c55e323
    chore(ci): use golangci-lint-action (#1477) Matthieu MOREL 2021-12-08 00:06:09 +01:00
  • 1beb476da9
    fix: Duplicate error message from cobra init boilerplates (#1463) ANGkeith 2021-12-08 07:03:24 +08:00
  • 6f84ef4875
    Provide option to hide default 'completion' cmd (#1541) Marc Khouzam 2021-12-07 18:02:02 -05:00
  • ee75a2b1ed
    Remove trailing spaces from bash completion command description (#1520) meyermarcel 2021-12-08 00:01:22 +01:00
  • 25bab5a398
    Fix invalid shell completion when used with ~/.cobra.yaml (#1510) darklore 2021-12-08 08:00:50 +09:00
  • 3fed3ef5ad
    Support different bash completion options (#1509) Marc Khouzam 2021-12-07 17:59:41 -05:00
  • 507caf5ac8
    completions: fix mixed tab/spaces indentation (#1473) Sebastiaan van Stijn 2021-12-07 23:57:57 +01:00
  • c7a4421715
    fix: typo in {bash,zsh}_completions.go (#1459) favonia 2021-12-07 16:53:38 -06:00
  • c3573e220c
    Completion: Capitalize short desc, and remove extra space from long (#1455) Frank Chiarulli Jr 2021-12-07 17:52:50 -05:00
  • dd40ab071f
    feat: improve completions help formatting (#1444) Carlos Alexandro Becker 2021-12-07 19:51:48 -03:00
  • d298d79e6a
    Update shell_completions.md to have automatically rootcmd (#1372) Ron Green 2021-12-08 00:46:48 +02:00
  • 6f19fa9f61
    fix: unbound variables in bash completion (#1321) Eden Tsai 2021-12-08 06:44:39 +08:00
  • d65ba125a3
    github: add dependabot configuration file (#1427) Unai Martinez-Corral 2021-12-07 22:41:10 +00:00
  • 45e521ea93
    enable composing PositionalArgs (#896) Nelz 2021-12-07 14:38:00 -08:00
  • ce89c5abe8 Placeholder for performing decryption logic; cobra now distributed using go modules Ryan Curtin 2021-12-07 17:11:39 -05:00
  • ea4db7eef4 Add Command.SetContext joshcarp 2021-12-06 21:23:45 +11:00
  • cb29346a0f Add comments JaySon-Huang 2021-12-03 10:52:17 +08:00
  • d364ed0157
    Only delete arg when it is not starts with - JaySon-Huang 2021-12-03 02:53:30 +08:00
  • a916286db1
    Fix expected behavior JaySon-Huang 2021-12-03 02:52:49 +08:00
  • 7d8e3706d1
    Add test cases JaySon-Huang 2021-12-03 02:08:41 +08:00
  • 5e0bbe8bdb remove unneeded error from printOption method Yik San Chan 2021-12-02 10:33:36 +08:00
  • 0d68cad780 Provide option to hide default 'completion' cmd Marc Khouzam 2021-11-24 13:49:39 -05:00
  • ad11199cda Capitalize first letter of default completion command short description Alexis Horgix Chotard 2021-11-22 16:04:14 +01:00
  • 3e1dc00c51
    Merge branch 'master' into parent_called_as Gautam Dey 2021-11-19 09:15:20 -08:00
  • 188cf8759b
    Merge b300764031 into 9e1d6f1c2a Adam Johnson 2021-11-18 22:09:34 +01:00
  • 41998feb8b
    Merge cb666582e9 into 9e1d6f1c2a Melissa Mahoney 2021-11-18 09:16:13 -06:00
  • 1f702282a5 Add WTFPL license from http://www.wtfpl.net/ Jan Hacker 2021-11-18 01:48:57 +01:00
  • e4633ccea4 github: add dependabot configuration file umarcor 2021-06-29 05:15:15 +02:00
  • 9e1d6f1c2a
    args_test: add helper functions (#1426) Unai Martinez-Corral 2021-11-16 22:20:18 +00:00
  • 62a72cdd0f
    fix(diff): use arg '--strip-trailing-cr' (#949) Unai Martinez-Corral 2021-11-16 22:17:12 +00:00
  • 1dabb28da3 rename to MatchAll Nelz 2019-07-03 10:15:25 -07:00
  • c02fa6c215 tests and docs Nelz 2019-07-02 10:45:39 -07:00
  • 08304cc038 ExactValidArgs slated for removal Nelz 2019-07-02 10:45:22 -07:00
  • 488a4bc560 enable composing PositionalArgs Nelz 2019-06-28 14:47:35 -07:00
  • 4120f6e4dc args_test: add additional helper functions umarcor 2019-03-18 23:45:36 +01:00
  • 989590274f args_test: add helper function getCommand umarcor 2019-03-18 23:32:12 +01:00
  • 0fd7782b66 args_test: add helper function expectSuccess umarcor 2019-03-18 23:20:48 +01:00
  • 58ecd47ee6 fix(diff): use arg '--strip-trailing-cr' umarcor 2019-09-05 12:20:25 +02:00
  • 442031e4ff
    Allow specifying licenses using their SPDX identifier (#1159) Yann Soubeyrand 2021-11-15 21:39:40 +01:00
  • 78969f9c81
    Remove "Lesser" from header for GPL-2.0 template (#880) Steve Winslow 2021-11-15 15:33:16 -05:00
  • 3c84bf8704
    Small correction in User Guide (#1009) Nickolas Kraus 2021-11-15 14:26:11 -06:00
  • 3ba5f15ba7
    Projects using cobra update (#1454) Unai Martinez-Corral 2021-11-15 20:21:07 +00:00
  • 3d2e39fbae
    Completion command helptext capitalization Aidan Mundy 2021-11-11 11:31:44 -05:00
  • f5cb7076c4 [projects_using_cobra] add VMware Tanzu Framework Max Brauer 2021-11-08 07:06:17 +01:00
  • 736f35a89d
    Add VMware Tanzu Framework to projects Max Brauer 2021-11-08 07:06:17 +01:00
  • 8a7e3f57df
    Docs: Fix command about install cobra executable. Jimmiehan 2021-11-04 19:50:29 +08:00
  • f2266c70fd [projects_using_cobra] add Infracost Vadim Golub 2021-11-02 15:37:35 +01:00
  • 19f373614e [projects_using_cobra] add Datree Yishay Mendelsohn 2021-10-17 16:08:20 +03:00
  • a23727aae4 [projects_using_cobra] add goreleaser and nfpm Carlos Alexandro Becker 2021-09-28 22:31:13 -03:00
  • 5be40f19c4 [projects_using_cobra] add Mercure Kévin Dunglas 2019-11-08 01:03:49 +01:00
  • fee6cb94a2 [projects_using_cobra] add multi-gitter Johan Lindell 2021-03-29 17:49:12 +02:00
  • e88cf5513a [projects_using_cobra] add qrcp Claudio d'Angelis 2021-04-19 18:22:20 +02:00
  • 7c7ff7a5ca [projects_using_cobra] add scaleway-cli Rémy Léone 2021-07-08 15:53:37 +02:00
  • 6879481caa [projects_using_cobra] add UpCloud CLI (upctl) Ville Skyttä 2021-07-10 13:36:24 +03:00
  • 56072ccc16 [projects_using_cobra] add moldy TeoDev1611 2021-05-30 11:35:30 -05:00
  • bfacc59f62 Addressing typos identified by @marckhouzam Steve Francia 2021-11-02 15:36:17 -04:00
  • 26825627c2 Simplifying goGet function Steve Francia 2021-07-02 11:01:58 -04:00
  • cf87fc4e30 Updating generator documentation and links Steve Francia 2021-07-02 10:58:34 -04:00
  • c97b7ece0b Update documentation to reflect the module aware generator Steve Francia 2021-07-01 18:22:36 -04:00
  • 9388e79fb4 Cobra generator now works within Go modules Steve Francia 2021-07-01 17:47:45 -04:00
  • c9edb78acc Change generator default license to none Steve Francia 2021-07-01 17:45:46 -04:00
  • dcf42b25f7 Change generator to require opting in to viper. Steve Francia 2021-07-01 17:40:39 -04:00
  • c0dd5cdef5 Removing unused imports when not using Viper Steve Francia 2021-07-01 17:16:39 -04:00
  • 9fa0b83ed0 Allow overriding Run/RunE of comp cmds Marc Khouzam 2021-11-03 08:38:11 -04:00
  • 3ae090bcba Make the default completion accessible Marc Khouzam 2021-11-02 21:21:33 -04:00
  • b33fae1ec9 Addressing typos identified by @marckhouzam Steve Francia 2021-11-02 15:36:17 -04:00