mirror of
https://github.com/taigrr/wasm-experiments
synced 2025-01-18 04:03:21 -08:00
21 lines
330 B
Go
21 lines
330 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/dave/wasmgo/cmd/deployer"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Show client version number",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println(deployer.CLIENT_VERSION)
|
|
},
|
|
}
|