Skip to content

Commit

Permalink
Disable autogenerated command completion
Browse files Browse the repository at this point in the history
Autocomplete for gh extensions is not currently supported.
See cli/cli#5309 for more details.

Closes #2
  • Loading branch information
lucasmelin committed Feb 6, 2023
1 parent 3b596b1 commit 199ce7b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
/gh-hook.exe

.idea

.DS_Store
7 changes: 4 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (
)

var rootCmd = &cobra.Command{
Use: "hook",
Short: "Hook makes it easy to manage your repository webhooks.",
Long: ``,
Use: "hook",
Short: "Hook makes it easy to manage your repository webhooks.",
Long: ``,
CompletionOptions: cobra.CompletionOptions{DisableDefaultCmd: true},
Run: func(cmd *cobra.Command, args []string) {
_ = cmd.Help()
},
Expand Down
Binary file modified vhs-tapes/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 199ce7b

Please sign in to comment.