We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f5c1da commit ca79936Copy full SHA for ca79936
coconut/doc/generate.go
@@ -59,4 +59,19 @@ func main() {
59
log.Fatal(err)
60
}
61
62
+ // Generate bash completion file
63
+ const bashCompletionPath = "../../share/bash-completion/completions"
64
+ _ = os.MkdirAll(bashCompletionPath, 0755)
65
+ err = rootCmd.GenBashCompletionFileV2(bashCompletionPath+"/coconut.sh", true)
66
+ if err != nil {
67
+ log.Fatal(err)
68
+ }
69
+
70
+ const zshCompletionPath = "../../share/zsh/site-functions"
71
+ _ = os.MkdirAll(zshCompletionPath, 0755)
72
+ err = rootCmd.GenZshCompletionFile(bashCompletionPath + "/_coconut")
73
74
75
76
77
0 commit comments