cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(c *Command)

Add adds a new torrent by URL or file.

func Errors added in v0.0.3

func Errors(c *Command)

Errors provides a list of all or selected torrents.

func List

func List(c *Command)

List provides a list of all or selected torrents.

func Move added in v0.0.3

func Move(c *Command)

Move implements the verify command (hash check torrents).

func Rename added in v0.0.4

func Rename(c *Command)

Rename renames a torrent path or file.

func Rm

func Rm(c *Command)

Rm implements the rm command.

func Run added in v0.0.3

func Run()

Run parses flags.

func Start

func Start(c *Command)

Start starts torrents.

func Stop

func Stop(c *Command)

Stop stops torrents.

func Verify added in v0.0.3

func Verify(c *Command)

Verify is a command that verifies (hash checks) the selected torrents.

func Version

func Version(c *Command)

Version prints the version number and build info.

func Which added in v0.0.3

func Which(c *Command)

Which implements the which command (find which torrent a file/path is associated with.

Types

type Command added in v0.0.3

type Command struct {
	PositionalArgs []string
	CommonOptions  commonOptions
	Client         *transmissionrpc.Client
	CommandInstance
}

Command holds everything needed to run a command.

func (*Command) Run added in v0.0.3

func (c *Command) Run()

Run is a simple wrapper to call the runner function of a command.

type CommandInstance added in v0.0.3

type CommandInstance struct {
	Options interface{}
	Runner  func(c *Command)
}

CommandInstance is the data specific to one command.

Jump to

Keyboard shortcuts

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