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.

channel.go 467B

12345678910111213141516171819
  1. package cmd
  2. import (
  3. "github.com/spf13/cobra"
  4. )
  5. var force bool
  6. var offset uint
  7. var Channel = cobra.Command{
  8. Use: "channel",
  9. Short: "Get information about a channel",
  10. }
  11. func init() {
  12. channelDumpCmd.Flags().BoolVarP(&force, "force", "f", false, "Overwrite the output file if it already exists")
  13. channelDumpCmd.Flags().UintVar(&offset, "page-offset", 1, "Start getting videos at this page. (A page is usually 30 videos)")
  14. Channel.AddCommand(&channelDumpCmd)
  15. }