command

package
v0.0.0-...-aeccf8d Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Root

func Root(args []string) error

Types

type AddCmd

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

func NewAddCmd

func NewAddCmd() *AddCmd

func (*AddCmd) Init

func (a *AddCmd) Init(args []string) error

func (*AddCmd) Name

func (a *AddCmd) Name() string

func (*AddCmd) Run

func (a *AddCmd) Run(d Distro) error

type Distro

type Distro interface {
	AddNewTorrents(client *transmissionrpc.Client) error
	RemoveOldTorrents(client *transmissionrpc.Client) error
}

type ListCmd

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

func NewListCmd

func NewListCmd() *ListCmd

func (*ListCmd) Init

func (l *ListCmd) Init(args []string) error

func (*ListCmd) Name

func (l *ListCmd) Name() string

func (*ListCmd) Run

func (l *ListCmd) Run(d Distro) error

type RemoveCmd

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

func NewRemoveCmd

func NewRemoveCmd() *RemoveCmd

func (*RemoveCmd) Init

func (r *RemoveCmd) Init(args []string) error

func (*RemoveCmd) Name

func (r *RemoveCmd) Name() string

func (*RemoveCmd) Run

func (r *RemoveCmd) Run(d Distro) error

type Runner

type Runner interface {
	Init([]string) error
	Run(d Distro) error
	Name() string
}

Jump to

Keyboard shortcuts

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