From 5b0cbd7cfaa8d09bf0beec4193e8c1d5332599e2 Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 16 Oct 2024 16:20:43 +0200 Subject: [PATCH] gh: updates from v2.59.0 --- completers/gh_completer/cmd/gist_list.go | 2 ++ completers/gh_completer/cmd/repo_gitignore.go | 19 +++++++++++++++ .../gh_completer/cmd/repo_gitignore_list.go | 19 +++++++++++++++ .../gh_completer/cmd/repo_gitignore_view.go | 23 ++++++++++++++++++ completers/gh_completer/cmd/repo_license.go | 19 +++++++++++++++ .../gh_completer/cmd/repo_license_list.go | 19 +++++++++++++++ .../gh_completer/cmd/repo_license_view.go | 24 +++++++++++++++++++ 7 files changed, 125 insertions(+) create mode 100644 completers/gh_completer/cmd/repo_gitignore.go create mode 100644 completers/gh_completer/cmd/repo_gitignore_list.go create mode 100644 completers/gh_completer/cmd/repo_gitignore_view.go create mode 100644 completers/gh_completer/cmd/repo_license.go create mode 100644 completers/gh_completer/cmd/repo_license_list.go create mode 100644 completers/gh_completer/cmd/repo_license_view.go diff --git a/completers/gh_completer/cmd/gist_list.go b/completers/gh_completer/cmd/gist_list.go index 91ec75ee61..ec8dc5744a 100644 --- a/completers/gh_completer/cmd/gist_list.go +++ b/completers/gh_completer/cmd/gist_list.go @@ -15,6 +15,8 @@ var gist_listCmd = &cobra.Command{ func init() { carapace.Gen(gist_listCmd).Standalone() + gist_listCmd.Flags().String("filter", "", "Filter gists using a regular `expression`") + gist_listCmd.Flags().Bool("include-content", false, "Include gists' file content when filtering") gist_listCmd.Flags().StringP("limit", "L", "", "Maximum number of gists to fetch") gist_listCmd.Flags().Bool("public", false, "Show only public gists") gist_listCmd.Flags().Bool("secret", false, "Show only secret gists") diff --git a/completers/gh_completer/cmd/repo_gitignore.go b/completers/gh_completer/cmd/repo_gitignore.go new file mode 100644 index 0000000000..6ccd05ccaa --- /dev/null +++ b/completers/gh_completer/cmd/repo_gitignore.go @@ -0,0 +1,19 @@ +package cmd + +import ( + "github.com/carapace-sh/carapace" + "github.com/spf13/cobra" +) + +var repo_gitignoreCmd = &cobra.Command{ + Use: "gitignore ", + Short: "List and view available repository gitignore templates", + GroupID: "Targeted commands", + Run: func(cmd *cobra.Command, args []string) {}, +} + +func init() { + carapace.Gen(repo_gitignoreCmd).Standalone() + + repoCmd.AddCommand(repo_gitignoreCmd) +} diff --git a/completers/gh_completer/cmd/repo_gitignore_list.go b/completers/gh_completer/cmd/repo_gitignore_list.go new file mode 100644 index 0000000000..b0dbea34f5 --- /dev/null +++ b/completers/gh_completer/cmd/repo_gitignore_list.go @@ -0,0 +1,19 @@ +package cmd + +import ( + "github.com/carapace-sh/carapace" + "github.com/spf13/cobra" +) + +var repo_gitignore_listCmd = &cobra.Command{ + Use: "list", + Short: "List available repository gitignore templates", + Aliases: []string{"ls"}, + Run: func(cmd *cobra.Command, args []string) {}, +} + +func init() { + carapace.Gen(repo_gitignore_listCmd).Standalone() + + repo_gitignoreCmd.AddCommand(repo_gitignore_listCmd) +} diff --git a/completers/gh_completer/cmd/repo_gitignore_view.go b/completers/gh_completer/cmd/repo_gitignore_view.go new file mode 100644 index 0000000000..8e2e5f962b --- /dev/null +++ b/completers/gh_completer/cmd/repo_gitignore_view.go @@ -0,0 +1,23 @@ +package cmd + +import ( + "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace-bin/completers/gh_completer/cmd/action" + "github.com/spf13/cobra" +) + +var repo_gitignore_viewCmd = &cobra.Command{ + Use: "view