mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 23:42:54 +00:00
Merge pull request #2776 from carapace-sh/gh-updates-v2.72.0
gh: updates from v2.72.0
This commit is contained in:
commit
72a30b7732
21
completers/gh_completer/cmd/accessibility.go
Normal file
21
completers/gh_completer/cmd/accessibility.go
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package cmd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/carapace-sh/carapace"
|
||||||
|
"github.com/spf13/cobra"
|
||||||
|
)
|
||||||
|
|
||||||
|
var accessibilityCmd = &cobra.Command{
|
||||||
|
Use: "accessibility",
|
||||||
|
Short: "Learn about GitHub CLI's accessibility experiences",
|
||||||
|
Aliases: []string{"a11y"},
|
||||||
|
Hidden: true,
|
||||||
|
Run: func(cmd *cobra.Command, args []string) {},
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
carapace.Gen(accessibilityCmd).Standalone()
|
||||||
|
|
||||||
|
accessibilityCmd.Flags().BoolP("web", "w", false, "Open the GitHub Accessibility site in your browser")
|
||||||
|
rootCmd.AddCommand(accessibilityCmd)
|
||||||
|
}
|
@ -20,6 +20,7 @@ func init() {
|
|||||||
carapace.Batch(
|
carapace.Batch(
|
||||||
carapace.ActionCommands(rootCmd),
|
carapace.ActionCommands(rootCmd),
|
||||||
carapace.ActionValuesDescribed(
|
carapace.ActionValuesDescribed(
|
||||||
|
"accessibility", "Learn about GitHub CLI's accessibility experiences",
|
||||||
"actions", "Learn about working with GitHub Actions",
|
"actions", "Learn about working with GitHub Actions",
|
||||||
"environment", "Environment variables that can be used with gh",
|
"environment", "Environment variables that can be used with gh",
|
||||||
"exit-codes", "Exit codes used by gh",
|
"exit-codes", "Exit codes used by gh",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user