You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/cmd/version.go

21 lines
375 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var VersionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Sync TV Server",
Long: `All software has versions. This is Sync TV Server's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("synctv-server v0.1 -- HEAD")
},
}
func init() {
RootCmd.AddCommand(VersionCmd)
}