/* Copyright © 2024 NAME HERE */ package cmd import ( "fmt" "github.com/hculpan/areweplaying/pkg/version" "github.com/spf13/cobra" ) // versionCmd represents the version command var versionCmd = &cobra.Command{ Use: "version", Short: "Print the build version and time", RunE: func(cmd *cobra.Command, args []string) error { fmt.Printf("awp-cli %s (built %s)\n", version.Version, version.BuildTime) return nil }, } func init() { rootCmd.AddCommand(versionCmd) }