Replace multiconfig with cobra+viper

This commit is contained in:
Deluan
2020-07-02 16:34:21 -04:00
parent fea060e4f2
commit 5021c0fd0c
10 changed files with 275 additions and 197 deletions
+21
View File
@@ -0,0 +1,21 @@
package cmd
import (
"fmt"
"github.com/deluan/navidrome/consts"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Navidrome",
Long: `All software has versions. This is Navidrome's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(consts.Version())
},
}