Skip to content

Commit 72a30b7

Browse files
authored
Merge pull request #2776 from carapace-sh/gh-updates-v2.72.0
gh: updates from v2.72.0
2 parents ccb19b4 + b5c628b commit 72a30b7

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var accessibilityCmd = &cobra.Command{
9+
Use: "accessibility",
10+
Short: "Learn about GitHub CLI's accessibility experiences",
11+
Aliases: []string{"a11y"},
12+
Hidden: true,
13+
Run: func(cmd *cobra.Command, args []string) {},
14+
}
15+
16+
func init() {
17+
carapace.Gen(accessibilityCmd).Standalone()
18+
19+
accessibilityCmd.Flags().BoolP("web", "w", false, "Open the GitHub Accessibility site in your browser")
20+
rootCmd.AddCommand(accessibilityCmd)
21+
}

completers/gh_completer/cmd/help.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func init() {
2020
carapace.Batch(
2121
carapace.ActionCommands(rootCmd),
2222
carapace.ActionValuesDescribed(
23+
"accessibility", "Learn about GitHub CLI's accessibility experiences",
2324
"actions", "Learn about working with GitHub Actions",
2425
"environment", "Environment variables that can be used with gh",
2526
"exit-codes", "Exit codes used by gh",

0 commit comments

Comments
 (0)