Skip to content

Commit 4289306

Browse files
Ivan Zhangdeliahu
authored andcommitted
Change version command output format (#348)
(cherry picked from commit ad815c2)
1 parent c4cad80 commit 4289306

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/cmd/root.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ func Execute() {
7979
rootCmd.AddCommand(configureCmd)
8080
rootCmd.AddCommand(completionCmd)
8181

82+
rootCmd.SetVersionTemplate(`{{printf "%s\n" .Version}}`)
83+
8284
rootCmd.Execute()
8385
}
8486

0 commit comments

Comments
 (0)