From 6d87096de29cfac991701261ef96a39e709a45f7 Mon Sep 17 00:00:00 2001 From: rsteube Date: Fri, 20 Dec 2024 19:28:17 +0100 Subject: [PATCH] gh: updates from 2.46.0 --- completers/gh_completer/cmd/attestation_inspect.go | 9 ++------- completers/gh_completer/cmd/browse.go | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/completers/gh_completer/cmd/attestation_inspect.go b/completers/gh_completer/cmd/attestation_inspect.go index f91b86ae12..d825b0d6d7 100644 --- a/completers/gh_completer/cmd/attestation_inspect.go +++ b/completers/gh_completer/cmd/attestation_inspect.go @@ -16,20 +16,15 @@ var attestation_inspectCmd = &cobra.Command{ func init() { carapace.Gen(attestation_inspectCmd).Standalone() - attestation_inspectCmd.Flags().StringP("bundle", "b", "", "Path to bundle on disk, either a single bundle in a JSON file or a JSON lines file with multiple bundles") - attestation_inspectCmd.Flags().StringP("digest-alg", "d", "", "The algorithm used to compute a digest of the artifact: {sha256|sha512}") attestation_inspectCmd.Flags().String("format", "", "Output format: {json}") attestation_inspectCmd.Flags().String("hostname", "", "Configure host to use") attestation_inspectCmd.Flags().StringP("jq", "q", "", "Filter JSON output using a jq `expression`") attestation_inspectCmd.Flags().StringP("template", "t", "", "Format JSON output using a Go template; see \"gh help formatting\"") - attestation_inspectCmd.MarkFlagRequired("bundle") attestationCmd.AddCommand(attestation_inspectCmd) carapace.Gen(attestation_inspectCmd).FlagCompletion(carapace.ActionMap{ - "bundle": carapace.ActionFiles(), - "digest-alg": carapace.ActionValues("sha256", "sha512"), - "format": carapace.ActionValues("json"), - "hostname": gh.ActionConfigHosts(), + "format": carapace.ActionValues("json"), + "hostname": gh.ActionConfigHosts(), }) carapace.Gen(attestation_inspectCmd).PositionalCompletion( diff --git a/completers/gh_completer/cmd/browse.go b/completers/gh_completer/cmd/browse.go index 9cc600e71c..c158897dca 100644 --- a/completers/gh_completer/cmd/browse.go +++ b/completers/gh_completer/cmd/browse.go @@ -16,7 +16,7 @@ import ( var browseCmd = &cobra.Command{ Use: "browse [ | | ]", - Short: "Open the repository in the browser", + Short: "Open repositories, issues, pull requests, and more in the browser", GroupID: "core", Run: func(cmd *cobra.Command, args []string) {}, }