ente/cli/cmd/version.go
2024-03-13 11:43:19 +05:30

21 lines
347 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
// versionCmd represents the version command
var versionCmd = &cobra.Command{
Use: "version",
Short: "Prints the current version",
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Version %s\n", version)
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}