package cmd import ( "fmt" "github.com/spf13/cobra" ) // infoCmd represents the info command var infoCmd = &cobra.Command{ Use: "info", Short: "A simple info fetch of a bunkr album", Long: `The command is used to fetch information about a specific bunkrr album, it will reply with all the information it has about it.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("info called") }, } var ( albumURL string ) func init() { rootCmd.AddCommand(infoCmd) infoCmd.Flags().StringVarP(&albumURL, "url", "u", "", "Bunkrr album url (required)") infoCmd.MarkFlagRequired("url") }