Skip to content

Commit f571144

Browse files
committed
Make completion command hidden
1 parent ecaff9b commit f571144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/root.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ func Execute() {
2222
}
2323
}
2424

25-
func init() {}
25+
func init() {
26+
rootCmd.CompletionOptions.HiddenDefaultCmd = true
27+
}
2628

2729
// abort prints the error to the console and terminates the program.
2830
// abort does nothing if err is nil.

0 commit comments

Comments
 (0)