Move work command
[yt-mango.git] / cmd / channel.go
blob0ccae943190cb9025a6409a6d11d7803c2ed7363
1 package cmd
3 import (
4 "github.com/spf13/cobra"
5 "regexp"
8 var force bool
9 var offset uint32
11 var Channel = cobra.Command{
12 Use: "channel",
13 Short: "Get information about a channel",
16 var matchChannelID = regexp.MustCompile("^([\\w\\-]|(%3[dD]))+$")
18 func init() {
19 channelDumpCmd.Flags().BoolVarP(&force, "force", "f", false, "Overwrite the output file if it already exists")
20 channelDumpCmd.Flags().Uint32Var(&offset, "page-offset", 1, "Start getting videos at this page. (A page is usually 30 videos)")
21 Channel.AddCommand(&channelDumpCmd)