commands

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2018 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(args []string)

Add adds a url to your feeds file

func Execute

func Execute()

Execute parses command line args and fires up commands

func Import

func Import(args []string)

Import imports feeds from a opml file.

func Setup

func Setup()

Setup writes a default configuration file.

Types

type Env

type Env struct {
	// contains filtered or unexported fields
}

Env struct

func (*Env) CatchUp

func (env *Env) CatchUp(id int)

CatchUp marks all episodes downloaded = true

func (*Env) Fetch

func (env *Env) Fetch(cmd *cobra.Command, args []string)

Fetch loops through episodes where downloaded = false and downloads them.

func (*Env) LsCasts

func (env *Env) LsCasts(cmd *cobra.Command, args []string)

LsCasts displays a list of podcasts you are subscribed to.

func (*Env) LsNew

func (env *Env) LsNew(cmd *cobra.Command, args []string)

LsNew prints out episodes where downloaded = false

func (*Env) Pause

func (env *Env) Pause(id int)

Pause pauses toggles the pause state of a podcast, which pauses new downloads.

func (*Env) Update

func (env *Env) Update(cmd *cobra.Command, args []string)

Update loops over the feeds file and inserts podcasts + episodes into the database.

type Params

type Params struct {
	// contains filtered or unexported fields
}

Params struct for downloader

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL