commands

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeDirectory

func ChangeDirectory(aerc *widgets.Aerc, args []string) error

func CommandNewAccount

func CommandNewAccount(aerc *widgets.Aerc, args []string) error

func CommandQuit

func CommandQuit(aerc *widgets.Aerc, args []string) error

func Help

func Help(aerc *widgets.Aerc, args []string) error

func NextPrevTab

func NextPrevTab(aerc *widgets.Aerc, args []string) error

func PrintWorkDirectory

func PrintWorkDirectory(aerc *widgets.Aerc, args []string) error

func QuickTerm

func QuickTerm(aerc *widgets.Aerc, args []string, stdin io.Reader) (*widgets.Terminal, error)

QuickTerm is an ephemeral terminal for running a single command and quiting.

func Term

func Term(aerc *widgets.Aerc, args []string) error

Types

type AercCommand

type AercCommand func(aerc *widgets.Aerc, args []string) error

type CommandSource

type CommandSource interface {
	Commands() *Commands
}

type Commands

type Commands map[string]AercCommand
var (
	GlobalCommands *Commands
)

func NewCommands

func NewCommands() *Commands

func (*Commands) ExecuteCommand

func (cmds *Commands) ExecuteCommand(aerc *widgets.Aerc, cmd string) error

func (*Commands) Register

func (cmds *Commands) Register(name string, cmd AercCommand)

type ErrorExit

type ErrorExit int

func (ErrorExit) Error

func (err ErrorExit) Error() string

type NoSuchCommand

type NoSuchCommand string

func (NoSuchCommand) Error

func (err NoSuchCommand) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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