Skip to content

Commit b747a3c

Browse files
committed
fix: print the correct version
Signed-off-by: Lan Liang <[email protected]>
1 parent b879bed commit b747a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kcl/commands/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func NewVersionCmd() *cobra.Command {
1616
Use: "version",
1717
Short: "Show version of the KCL CLI",
1818
Run: func(*cobra.Command, []string) {
19-
fmt.Println(version.VersionTypeLatest)
19+
fmt.Println(version.GetVersionString())
2020
},
2121
SilenceUsage: true,
2222
}

0 commit comments

Comments
 (0)