quintodrome/cmd/version.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
379 B
Go
Raw Normal View History

2020-07-02 12:34:21 -08:00
package cmd
import (
"fmt"
"github.com/deluan/navidrome/consts"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: "version",
2020-07-02 13:21:25 -08:00
Short: "Print Navidrome's version",
2020-07-02 12:34:21 -08:00
Long: `All software has versions. This is Navidrome's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(consts.Version())
},
}