linsk/cmd/version.go
2023-08-30 14:53:22 +01:00

17 lines
348 B
Go

package cmd
import (
"fmt"
"runtime"
"github.com/AlexSSD7/linsk/constants"
"github.com/spf13/cobra"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Show Linsk version.",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Linsk %v %v/%v %v", constants.Version, runtime.GOOS, runtime.GOARCH, runtime.Version())
},
}