Skip to content

Commit 10e7240

Browse files
committed
unified versions
1 parent 4d40afb commit 10e7240

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/meshem/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func main() {
2828
flag.Parse()
2929
ctx := context.Background()
3030

31-
logger.Infof("meshem server version=%s", src.ServerVersion())
31+
logger.Infof("meshem server version=%s", src.MeshemVersion())
3232

3333
// read config file
3434
conf, err := model.NewMeshemConfFile(*confPath)

src/meshemctl/command/version_cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ func NewVersionCommand() *cobra.Command {
1616
}
1717

1818
func versionCommandFunc(cmd *cobra.Command, args []string) {
19-
fmt.Println("meshemctl version:", src.ClientVersion())
19+
fmt.Println("meshemctl version:", src.MeshemVersion())
2020
}

src/version.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package src
22

3-
func ClientVersion() string {
4-
return "0.1.0"
5-
}
6-
func ServerVersion() string {
3+
func MeshemVersion() string {
74
return "0.1.0"
85
}

0 commit comments

Comments
 (0)