Skip to content

Commit ca15cee

Browse files
author
Shuo
authored
Merge pull request #537 from openset/develop
Add: String
2 parents 7a3ee6e + 64763af commit ca15cee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/version/version.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ func runVersion(cmd *base.Command, args []string) {
2222
}
2323
fmt.Printf("%s version %s %s/%s\n", base.CmdName, version, runtime.GOOS, runtime.GOARCH)
2424
}
25+
26+
func String() string {
27+
return version
28+
}

0 commit comments

Comments
 (0)