Generate an RSS feed from a config file and an mp3 file.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
559 B

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
const (
//ApplicationName displays name of the app
ApplicationName = "feeder"
)
var (
//ApplicationVersion displays version of the app
ApplicationVersion = ""
)
// versionCmd represents the version command
var versionCmd = &cobra.Command{
Use: "version",
Short: "Display feeder's version",
Long: `Display feeder's version`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("%v-%v\n", ApplicationName, ApplicationVersion)
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}