Skip to content

Commit

Permalink
Merge pull request #2651 from carapace-sh/gh-updates-2.64.0
Browse files Browse the repository at this point in the history
gh: updates from 2.46.0
  • Loading branch information
rsteube authored Dec 22, 2024
2 parents f6d5be4 + 6d87096 commit 100073e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions completers/gh_completer/cmd/attestation_inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion completers/gh_completer/cmd/browse.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

var browseCmd = &cobra.Command{
Use: "browse [<number> | <path> | <commit-SHA>]",
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) {},
}
Expand Down

0 comments on commit 100073e

Please sign in to comment.