Skip to content

Commit 4763212

Browse files
authored
Merge pull request #233 from liangyuanpeng/fix_version
fix: print the correct version
2 parents 5a58dfe + b747a3c commit 4763212

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)