Skip to content

Commit a876430

Browse files
committed
gh: updates from v2.86.0
1 parent 6a42d2f commit a876430

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

completers/common/gh_completer/cmd/cache_delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var cache_deleteCmd = &cobra.Command{
1515
func init() {
1616
carapace.Gen(cache_deleteCmd).Standalone()
1717

18-
cache_deleteCmd.Flags().BoolP("all", "a", false, "Delete all caches")
18+
cache_deleteCmd.Flags().BoolP("all", "a", false, "Delete all caches, can be used with --ref to delete all caches for a specific ref")
1919
cache_deleteCmd.Flags().StringP("ref", "r", "", "Delete by cache key and ref, formatted as refs/heads/<branch name> or refs/pull/<number>/merge")
2020
cache_deleteCmd.Flags().Bool("succeed-on-no-caches", false, "Return exit code 0 if no caches found. Must be used in conjunction with `--all`")
2121
cacheCmd.AddCommand(cache_deleteCmd)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/carapace-sh/carapace-bridge/pkg/actions/bridge"
6+
"github.com/spf13/cobra"
7+
)
8+
9+
var copilotCmd = &cobra.Command{
10+
Use: "copilot [flags] [args]",
11+
Short: "Run the GitHub Copilot CLI (preview)",
12+
Run: func(cmd *cobra.Command, args []string) {},
13+
}
14+
15+
func init() {
16+
carapace.Gen(copilotCmd).Standalone()
17+
copilotCmd.Flags().SetInterspersed(false)
18+
19+
copilotCmd.Flags().Bool("remove", false, "Remove the downloaded Copilot CLI")
20+
rootCmd.AddCommand(copilotCmd)
21+
22+
carapace.Gen(copilotCmd).PositionalAnyCompletion(
23+
bridge.ActionCarapaceBin("copilot"),
24+
)
25+
}

0 commit comments

Comments
 (0)