account

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Align

type Align struct {
	Pos app.AlignPosition `opt:"pos" metavar:"top|center|bottom" action:"ParsePos" complete:"CompletePos"`
}

func (Align) Aliases

func (Align) Aliases() []string

func (*Align) CompletePos

func (a *Align) CompletePos(arg string) []string

func (Align) Context

func (Align) Context() commands.CommandContext

func (Align) Execute

func (a Align) Execute(args []string) error

func (*Align) ParsePos

func (a *Align) ParsePos(arg string) error

type ChangeFolder

type ChangeFolder struct {
	Account bool   `opt:"-a"`
	Folder  string `opt:"..." complete:"CompleteFolderAndNotmuch"`
}

func (ChangeFolder) Aliases

func (ChangeFolder) Aliases() []string

func (*ChangeFolder) CompleteFolderAndNotmuch

func (c *ChangeFolder) CompleteFolderAndNotmuch(arg string) []string

func (ChangeFolder) Context

func (ChangeFolder) Execute

func (c ChangeFolder) Execute([]string) error

type CheckMail

type CheckMail struct{}

func (CheckMail) Aliases

func (CheckMail) Aliases() []string

func (CheckMail) Context

func (CheckMail) Context() commands.CommandContext

func (CheckMail) Execute

func (CheckMail) Execute(args []string) error

type Clear

type Clear struct {
	Selected bool `opt:"-s"`
}

func (Clear) Aliases

func (Clear) Aliases() []string

func (Clear) Context

func (Clear) Context() commands.CommandContext

func (Clear) Execute

func (c Clear) Execute(args []string) error

type Compose

type Compose struct {
	Headers  string `opt:"-H" action:"ParseHeader"`
	Template string `opt:"-T" complete:"CompleteTemplate"`
	Edit     bool   `opt:"-e"`
	NoEdit   bool   `opt:"-E"`
	Body     string `opt:"..." required:"false"`
}

func (Compose) Aliases

func (Compose) Aliases() []string

func (*Compose) CompleteTemplate

func (*Compose) CompleteTemplate(arg string) []string

func (Compose) Context

func (Compose) Context() commands.CommandContext

func (Compose) Execute

func (c Compose) Execute(args []string) error

func (*Compose) ParseHeader

func (c *Compose) ParseHeader(arg string) error

type Connection

type Connection struct{}

func (Connection) Aliases

func (Connection) Aliases() []string

func (Connection) Context

func (Connection) Execute

func (c Connection) Execute(args []string) error

type ExpandCollapseFolder

type ExpandCollapseFolder struct{}

func (ExpandCollapseFolder) Aliases

func (ExpandCollapseFolder) Aliases() []string

func (ExpandCollapseFolder) Context

func (ExpandCollapseFolder) Execute

func (ExpandCollapseFolder) Execute(args []string) error

type ExportMbox

type ExportMbox struct {
	Filename string `opt:"filename" complete:"CompleteFilename"`
}

func (ExportMbox) Aliases

func (ExportMbox) Aliases() []string

func (*ExportMbox) CompleteFilename

func (*ExportMbox) CompleteFilename(arg string) []string

func (ExportMbox) Context

func (ExportMbox) Execute

func (e ExportMbox) Execute(args []string) error

type ImportMbox

type ImportMbox struct {
	Filename string `opt:"filename" complete:"CompleteFilename"`
}

func (ImportMbox) Aliases

func (ImportMbox) Aliases() []string

func (*ImportMbox) CompleteFilename

func (*ImportMbox) CompleteFilename(arg string) []string

func (ImportMbox) Context

func (ImportMbox) Execute

func (i ImportMbox) Execute(args []string) error

type MakeDir

type MakeDir struct {
	Folder string `opt:"folder" complete:"CompleteFolder"`
}

func (MakeDir) Aliases

func (MakeDir) Aliases() []string

func (*MakeDir) CompleteFolder

func (*MakeDir) CompleteFolder(arg string) []string

func (MakeDir) Context

func (MakeDir) Context() commands.CommandContext

func (MakeDir) Execute

func (m MakeDir) Execute(args []string) error

type NextPrevFolder

type NextPrevFolder struct {
	Offset int `opt:"n" default:"1"`
}

func (NextPrevFolder) Aliases

func (NextPrevFolder) Aliases() []string

func (NextPrevFolder) Context

func (NextPrevFolder) Execute

func (np NextPrevFolder) Execute(args []string) error

type NextPrevMsg

type NextPrevMsg struct {
	Amount  int `opt:"n" default:"1" metavar:"<n>[%]" action:"ParseAmount"`
	Percent bool
}

func (NextPrevMsg) Aliases

func (NextPrevMsg) Aliases() []string

func (NextPrevMsg) Context

func (NextPrevMsg) Execute

func (np NextPrevMsg) Execute(args []string) error

func (*NextPrevMsg) ParseAmount

func (np *NextPrevMsg) ParseAmount(arg string) error

type NextPrevResult

type NextPrevResult struct{}

func (NextPrevResult) Aliases

func (NextPrevResult) Aliases() []string

func (NextPrevResult) Context

func (NextPrevResult) Execute

func (NextPrevResult) Execute(args []string) error

type Query

type Query struct {
	Account string `opt:"-a" complete:"CompleteAccount"`
	Name    string `opt:"-n"`
	Query   string `opt:"..." complete:"CompleteNotmuch"`
}

func (Query) Aliases

func (Query) Aliases() []string

func (Query) CompleteAccount

func (Query) CompleteAccount(arg string) []string

func (*Query) CompleteNotmuch

func (*Query) CompleteNotmuch(arg string) []string

func (Query) Context

func (Query) Context() commands.CommandContext

func (Query) Execute

func (q Query) Execute([]string) error

type Recover

type Recover struct {
	Force  bool   `opt:"-f"`
	Edit   bool   `opt:"-e"`
	NoEdit bool   `opt:"-E"`
	File   string `opt:"file" complete:"CompleteFile"`
}

func (Recover) Aliases

func (Recover) Aliases() []string

func (*Recover) CompleteFile

func (*Recover) CompleteFile(arg string) []string

func (Recover) Context

func (Recover) Context() commands.CommandContext

func (Recover) Execute

func (r Recover) Execute(args []string) error

func (Recover) Options

func (Recover) Options() string

type RemoveDir

type RemoveDir struct {
	Force bool `opt:"-f"`
}

func (RemoveDir) Aliases

func (RemoveDir) Aliases() []string

func (RemoveDir) Context

func (RemoveDir) Context() commands.CommandContext

func (RemoveDir) Execute

func (r RemoveDir) Execute(args []string) error

type SearchFilter

type SearchFilter struct {
	Read         bool                 `opt:"-r" action:"ParseRead"`
	Unread       bool                 `opt:"-u" action:"ParseUnread"`
	Body         bool                 `opt:"-b"`
	All          bool                 `opt:"-a"`
	Headers      textproto.MIMEHeader `opt:"-H" action:"ParseHeader" metavar:"<header>:<value>"`
	WithFlags    models.Flags         `opt:"-x" action:"ParseFlag" complete:"CompleteFlag"`
	WithoutFlags models.Flags         `opt:"-X" action:"ParseNotFlag" complete:"CompleteFlag"`
	To           []string             `opt:"-t" action:"ParseTo" complete:"CompleteAddress"`
	From         []string             `opt:"-f" action:"ParseFrom" complete:"CompleteAddress"`
	Cc           []string             `opt:"-c" action:"ParseCc" complete:"CompleteAddress"`
	StartDate    time.Time            `opt:"-d" action:"ParseDate" complete:"CompleteDate"`
	EndDate      time.Time
	Terms        string `opt:"..." required:"false" complete:"CompleteNotmuch"`
}

func (SearchFilter) Aliases

func (SearchFilter) Aliases() []string

func (*SearchFilter) CompleteAddress

func (*SearchFilter) CompleteAddress(arg string) []string

func (*SearchFilter) CompleteDate

func (*SearchFilter) CompleteDate(arg string) []string

func (*SearchFilter) CompleteFlag

func (*SearchFilter) CompleteFlag(arg string) []string

func (*SearchFilter) CompleteNotmuch

func (*SearchFilter) CompleteNotmuch(arg string) []string

func (SearchFilter) Context

func (SearchFilter) Execute

func (s SearchFilter) Execute(args []string) error

func (*SearchFilter) ParseCc

func (s *SearchFilter) ParseCc(arg string) error

func (*SearchFilter) ParseDate

func (s *SearchFilter) ParseDate(arg string) error

func (*SearchFilter) ParseFlag

func (s *SearchFilter) ParseFlag(arg string) error

func (*SearchFilter) ParseFrom

func (s *SearchFilter) ParseFrom(arg string) error

func (*SearchFilter) ParseHeader

func (s *SearchFilter) ParseHeader(arg string) error

func (*SearchFilter) ParseNotFlag

func (s *SearchFilter) ParseNotFlag(arg string) error

func (*SearchFilter) ParseRead

func (s *SearchFilter) ParseRead(arg string) error

func (*SearchFilter) ParseTo

func (s *SearchFilter) ParseTo(arg string) error

func (*SearchFilter) ParseUnread

func (s *SearchFilter) ParseUnread(arg string) error

type SelectMessage

type SelectMessage struct {
	Index int `opt:"n"`
}

func (SelectMessage) Aliases

func (SelectMessage) Aliases() []string

func (SelectMessage) Context

func (SelectMessage) Execute

func (s SelectMessage) Execute(args []string) error

type Sort

type Sort struct {
	Unused struct{} `opt:"-"`
	// these fields are only used for completion
	Reverse  bool     `opt:"-r"`
	Criteria []string `opt:"criteria" complete:"CompleteCriteria"`
}

func (Sort) Aliases

func (Sort) Aliases() []string

func (*Sort) CompleteCriteria

func (*Sort) CompleteCriteria(arg string) []string

func (Sort) Context

func (Sort) Context() commands.CommandContext

func (Sort) Execute

func (Sort) Execute(args []string) error

type Split

type Split struct {
	Size  int `opt:"n" required:"false" action:"ParseSize"`
	Delta bool
}

func (Split) Aliases

func (Split) Aliases() []string

func (Split) Context

func (Split) Context() commands.CommandContext

func (Split) Execute

func (s Split) Execute(args []string) error

func (*Split) ParseSize

func (s *Split) ParseSize(arg string) error

type ViewMessage

type ViewMessage struct {
	Peek bool `opt:"-p"`
}

func (ViewMessage) Aliases

func (ViewMessage) Aliases() []string

func (ViewMessage) Context

func (ViewMessage) Execute

func (v ViewMessage) Execute(args []string) error

Jump to

Keyboard shortcuts

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