all: purge redundant underscores
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
This commit is contained in:
parent
c6b776adbf
commit
6838c23478
45 changed files with 132 additions and 132 deletions
|
@ -19,15 +19,15 @@ func init() {
|
||||||
register(ChangeFolder{})
|
register(ChangeFolder{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeFolder) Aliases() []string {
|
func (ChangeFolder) Aliases() []string {
|
||||||
return []string{"cf"}
|
return []string{"cf"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeFolder) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (ChangeFolder) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return commands.GetFolders(aerc, args)
|
return commands.GetFolders(aerc, args)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeFolder) Execute(aerc *widgets.Aerc, args []string) error {
|
func (ChangeFolder) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) < 2 {
|
if len(args) < 2 {
|
||||||
return errors.New("Usage: cf <folder>")
|
return errors.New("Usage: cf <folder>")
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,15 +11,15 @@ func init() {
|
||||||
register(Clear{})
|
register(Clear{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Clear) Aliases() []string {
|
func (Clear) Aliases() []string {
|
||||||
return []string{"clear"}
|
return []string{"clear"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Clear) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Clear) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Clear) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Clear) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
acct := aerc.SelectedAccount()
|
acct := aerc.SelectedAccount()
|
||||||
if acct == nil {
|
if acct == nil {
|
||||||
return errors.New("No account selected")
|
return errors.New("No account selected")
|
||||||
|
|
|
@ -15,15 +15,15 @@ func init() {
|
||||||
register(Compose{})
|
register(Compose{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Compose) Aliases() []string {
|
func (Compose) Aliases() []string {
|
||||||
return []string{"compose"}
|
return []string{"compose"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Compose) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Compose) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Compose) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Compose) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
body, err := buildBody(args)
|
body, err := buildBody(args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -16,15 +16,15 @@ func init() {
|
||||||
register(MakeDir{})
|
register(MakeDir{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ MakeDir) Aliases() []string {
|
func (MakeDir) Aliases() []string {
|
||||||
return []string{"mkdir"}
|
return []string{"mkdir"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ MakeDir) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (MakeDir) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ MakeDir) Execute(aerc *widgets.Aerc, args []string) error {
|
func (MakeDir) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 2 {
|
if len(args) != 2 {
|
||||||
return errors.New("Usage: :mkdir <name>")
|
return errors.New("Usage: :mkdir <name>")
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,15 +14,15 @@ func init() {
|
||||||
register(NextPrevFolder{})
|
register(NextPrevFolder{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevFolder) Aliases() []string {
|
func (NextPrevFolder) Aliases() []string {
|
||||||
return []string{"next-folder", "prev-folder"}
|
return []string{"next-folder", "prev-folder"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevFolder) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (NextPrevFolder) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevFolder) Execute(aerc *widgets.Aerc, args []string) error {
|
func (NextPrevFolder) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
return nextPrevFolderUsage(args[0])
|
return nextPrevFolderUsage(args[0])
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,15 +13,15 @@ func init() {
|
||||||
register(NextPrevResult{})
|
register(NextPrevResult{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevResult) Aliases() []string {
|
func (NextPrevResult) Aliases() []string {
|
||||||
return []string{"next-result", "prev-result"}
|
return []string{"next-result", "prev-result"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevResult) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (NextPrevResult) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevResult) Execute(aerc *widgets.Aerc, args []string) error {
|
func (NextPrevResult) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
return nextPrevResultUsage(args[0])
|
return nextPrevResultUsage(args[0])
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,16 +15,16 @@ func init() {
|
||||||
register(NextPrevMsg{})
|
register(NextPrevMsg{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevMsg) Aliases() []string {
|
func (NextPrevMsg) Aliases() []string {
|
||||||
return []string{"next", "next-message", "prev", "prev-message"}
|
return []string{"next", "next-message", "prev", "prev-message"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevMsg) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (NextPrevMsg) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error {
|
|
||||||
var err, n, pct = ParseNextPrevMessage(args)
|
var err, n, pct = ParseNextPrevMessage(args)
|
||||||
|
func (NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,15 +12,15 @@ func init() {
|
||||||
register(SearchFilter{})
|
register(SearchFilter{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ SearchFilter) Aliases() []string {
|
func (SearchFilter) Aliases() []string {
|
||||||
return []string{"search", "filter"}
|
return []string{"search", "filter"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ SearchFilter) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (SearchFilter) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ SearchFilter) Execute(aerc *widgets.Aerc, args []string) error {
|
func (SearchFilter) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
acct := aerc.SelectedAccount()
|
acct := aerc.SelectedAccount()
|
||||||
if acct == nil {
|
if acct == nil {
|
||||||
return errors.New("No account selected")
|
return errors.New("No account selected")
|
||||||
|
|
|
@ -13,15 +13,15 @@ func init() {
|
||||||
register(SelectMessage{})
|
register(SelectMessage{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ SelectMessage) Aliases() []string {
|
func (SelectMessage) Aliases() []string {
|
||||||
return []string{"select", "select-message"}
|
return []string{"select", "select-message"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ SelectMessage) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (SelectMessage) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ SelectMessage) Execute(aerc *widgets.Aerc, args []string) error {
|
func (SelectMessage) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 2 {
|
if len(args) != 2 {
|
||||||
return errors.New("Usage: :select-message <n>")
|
return errors.New("Usage: :select-message <n>")
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,15 +12,15 @@ func init() {
|
||||||
register(ViewMessage{})
|
register(ViewMessage{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ViewMessage) Aliases() []string {
|
func (ViewMessage) Aliases() []string {
|
||||||
return []string{"view-message", "view"}
|
return []string{"view-message", "view"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ViewMessage) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (ViewMessage) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ViewMessage) Execute(aerc *widgets.Aerc, args []string) error {
|
func (ViewMessage) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: view-message")
|
return errors.New("Usage: view-message")
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,11 +19,11 @@ func init() {
|
||||||
register(ChangeDirectory{})
|
register(ChangeDirectory{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeDirectory) Aliases() []string {
|
func (ChangeDirectory) Aliases() []string {
|
||||||
return []string{"cd"}
|
return []string{"cd"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeDirectory) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (ChangeDirectory) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
path := ""
|
path := ""
|
||||||
if len(args) >= 1 {
|
if len(args) >= 1 {
|
||||||
path = args[0]
|
path = args[0]
|
||||||
|
@ -42,7 +42,7 @@ func (_ ChangeDirectory) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return dirs
|
return dirs
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeDirectory) Execute(aerc *widgets.Aerc, args []string) error {
|
func (ChangeDirectory) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) < 1 || len(args) > 2 {
|
if len(args) < 1 || len(args) > 2 {
|
||||||
return errors.New("Usage: cd [directory]")
|
return errors.New("Usage: cd [directory]")
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,15 +12,15 @@ func init() {
|
||||||
register(Abort{})
|
register(Abort{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Abort) Aliases() []string {
|
func (Abort) Aliases() []string {
|
||||||
return []string{"abort"}
|
return []string{"abort"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Abort) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Abort) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Abort) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Abort) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: abort")
|
return errors.New("Usage: abort")
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,11 +17,11 @@ func init() {
|
||||||
register(Attach{})
|
register(Attach{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Attach) Aliases() []string {
|
func (Attach) Aliases() []string {
|
||||||
return []string{"attach"}
|
return []string{"attach"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Attach) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Attach) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
path := ""
|
path := ""
|
||||||
if len(args) >= 1 {
|
if len(args) >= 1 {
|
||||||
path = args[0]
|
path = args[0]
|
||||||
|
@ -30,7 +30,7 @@ func (_ Attach) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return commands.CompletePath(path)
|
return commands.CompletePath(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Attach) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Attach) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 2 {
|
if len(args) != 2 {
|
||||||
return fmt.Errorf("Usage: :attach <path>")
|
return fmt.Errorf("Usage: :attach <path>")
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,15 +12,15 @@ func init() {
|
||||||
register(CC{})
|
register(CC{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ CC) Aliases() []string {
|
func (CC) Aliases() []string {
|
||||||
return []string{"cc", "bcc"}
|
return []string{"cc", "bcc"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ CC) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (CC) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ CC) Execute(aerc *widgets.Aerc, args []string) error {
|
func (CC) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
var addrs string
|
var addrs string
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
addrs = strings.Join(args[1:], " ")
|
addrs = strings.Join(args[1:], " ")
|
||||||
|
|
|
@ -14,17 +14,17 @@ func init() {
|
||||||
register(Detach{})
|
register(Detach{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Detach) Aliases() []string {
|
func (Detach) Aliases() []string {
|
||||||
return []string{"detach"}
|
return []string{"detach"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Detach) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Detach) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
composer, _ := aerc.SelectedTab().(*widgets.Composer)
|
composer, _ := aerc.SelectedTab().(*widgets.Composer)
|
||||||
|
|
||||||
return composer.GetAttachments()
|
return composer.GetAttachments()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Detach) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Detach) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
var path string
|
var path string
|
||||||
composer, _ := aerc.SelectedTab().(*widgets.Composer)
|
composer, _ := aerc.SelectedTab().(*widgets.Composer)
|
||||||
|
|
||||||
|
|
|
@ -12,15 +12,15 @@ func init() {
|
||||||
register(Edit{})
|
register(Edit{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Edit) Aliases() []string {
|
func (Edit) Aliases() []string {
|
||||||
return []string{"edit"}
|
return []string{"edit"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Edit) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Edit) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Edit) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Edit) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: edit")
|
return errors.New("Usage: edit")
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,15 +13,15 @@ func init() {
|
||||||
register(NextPrevField{})
|
register(NextPrevField{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevField) Aliases() []string {
|
func (NextPrevField) Aliases() []string {
|
||||||
return []string{"next-field", "prev-field"}
|
return []string{"next-field", "prev-field"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevField) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (NextPrevField) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevField) Execute(aerc *widgets.Aerc, args []string) error {
|
func (NextPrevField) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
return nextPrevFieldUsage(args[0])
|
return nextPrevFieldUsage(args[0])
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,15 +28,15 @@ func init() {
|
||||||
register(Send{})
|
register(Send{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Send) Aliases() []string {
|
func (Send) Aliases() []string {
|
||||||
return []string{"send"}
|
return []string{"send"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Send) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Send) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Send) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Send) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
return errors.New("Usage: send")
|
return errors.New("Usage: send")
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,11 +15,11 @@ func init() {
|
||||||
register(ChangeTab{})
|
register(ChangeTab{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeTab) Aliases() []string {
|
func (ChangeTab) Aliases() []string {
|
||||||
return []string{"ct", "change-tab"}
|
return []string{"ct", "change-tab"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeTab) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (ChangeTab) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
return aerc.TabNames()
|
return aerc.TabNames()
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ func (_ ChangeTab) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ChangeTab) Execute(aerc *widgets.Aerc, args []string) error {
|
func (ChangeTab) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 2 {
|
if len(args) != 2 {
|
||||||
return errors.New(fmt.Sprintf("Usage: %s <tab>", args[0]))
|
return errors.New(fmt.Sprintf("Usage: %s <tab>", args[0]))
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,15 +17,15 @@ func init() {
|
||||||
register(ExecCmd{})
|
register(ExecCmd{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ExecCmd) Aliases() []string {
|
func (ExecCmd) Aliases() []string {
|
||||||
return []string{"exec"}
|
return []string{"exec"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ExecCmd) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (ExecCmd) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ExecCmd) Execute(aerc *widgets.Aerc, args []string) error {
|
func (ExecCmd) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) < 2 {
|
if len(args) < 2 {
|
||||||
return errors.New("Usage: exec [cmd...]")
|
return errors.New("Usage: exec [cmd...]")
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,15 +12,15 @@ func init() {
|
||||||
register(Help{})
|
register(Help{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Help) Aliases() []string {
|
func (Help) Aliases() []string {
|
||||||
return []string{"help"}
|
return []string{"help"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Help) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Help) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Help) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Help) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
page := "aerc"
|
page := "aerc"
|
||||||
if len(args) == 2 {
|
if len(args) == 2 {
|
||||||
page = "aerc-" + args[1]
|
page = "aerc-" + args[1]
|
||||||
|
|
|
@ -24,15 +24,15 @@ func init() {
|
||||||
register(Archive{})
|
register(Archive{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Archive) Aliases() []string {
|
func (Archive) Aliases() []string {
|
||||||
return []string{"archive"}
|
return []string{"archive"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Archive) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Archive) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Archive) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Archive) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 2 {
|
if len(args) != 2 {
|
||||||
return errors.New("Usage: archive <flat|year|month>")
|
return errors.New("Usage: archive <flat|year|month>")
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,15 +17,15 @@ func init() {
|
||||||
register(Copy{})
|
register(Copy{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Copy) Aliases() []string {
|
func (Copy) Aliases() []string {
|
||||||
return []string{"cp", "copy"}
|
return []string{"cp", "copy"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Copy) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Copy) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Copy) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Copy) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
opts, optind, err := getopt.Getopts(args, "p")
|
opts, optind, err := getopt.Getopts(args, "p")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -16,15 +16,15 @@ func init() {
|
||||||
register(Delete{})
|
register(Delete{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Delete) Aliases() []string {
|
func (Delete) Aliases() []string {
|
||||||
return []string{"delete", "delete-message"}
|
return []string{"delete", "delete-message"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Delete) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Delete) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Delete) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Delete) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: :delete")
|
return errors.New("Usage: :delete")
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,15 +23,15 @@ func init() {
|
||||||
register(forward{})
|
register(forward{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ forward) Aliases() []string {
|
func (forward) Aliases() []string {
|
||||||
return []string{"forward"}
|
return []string{"forward"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ forward) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (forward) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ forward) Execute(aerc *widgets.Aerc, args []string) error {
|
func (forward) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
opts, optind, err := getopt.Getopts(args, "A")
|
opts, optind, err := getopt.Getopts(args, "A")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -18,15 +18,15 @@ func init() {
|
||||||
register(Move{})
|
register(Move{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Move) Aliases() []string {
|
func (Move) Aliases() []string {
|
||||||
return []string{"mv", "move"}
|
return []string{"mv", "move"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Move) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Move) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return commands.GetFolders(aerc, args)
|
return commands.GetFolders(aerc, args)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Move) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Move) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
opts, optind, err := getopt.Getopts(args, "p")
|
opts, optind, err := getopt.Getopts(args, "p")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -23,15 +23,15 @@ func init() {
|
||||||
register(Pipe{})
|
register(Pipe{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Pipe) Aliases() []string {
|
func (Pipe) Aliases() []string {
|
||||||
return []string{"pipe"}
|
return []string{"pipe"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Pipe) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Pipe) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Pipe) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Pipe) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
var (
|
var (
|
||||||
background bool
|
background bool
|
||||||
pipeFull bool
|
pipeFull bool
|
||||||
|
|
|
@ -19,15 +19,15 @@ func init() {
|
||||||
register(Read{})
|
register(Read{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Read) Aliases() []string {
|
func (Read) Aliases() []string {
|
||||||
return []string{"read", "unread"}
|
return []string{"read", "unread"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Read) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Read) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Read) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Read) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
opts, optind, err := getopt.Getopts(args, "t")
|
opts, optind, err := getopt.Getopts(args, "t")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -23,15 +23,15 @@ func init() {
|
||||||
register(reply{})
|
register(reply{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ reply) Aliases() []string {
|
func (reply) Aliases() []string {
|
||||||
return []string{"reply"}
|
return []string{"reply"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ reply) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (reply) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ reply) Execute(aerc *widgets.Aerc, args []string) error {
|
func (reply) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
opts, optind, err := getopt.Getopts(args, "aq")
|
opts, optind, err := getopt.Getopts(args, "aq")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -12,15 +12,15 @@ func init() {
|
||||||
register(Close{})
|
register(Close{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Close) Aliases() []string {
|
func (Close) Aliases() []string {
|
||||||
return []string{"close"}
|
return []string{"close"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Close) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Close) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Close) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Close) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: close")
|
return errors.New("Usage: close")
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,15 +14,15 @@ func init() {
|
||||||
register(NextPrevPart{})
|
register(NextPrevPart{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevPart) Aliases() []string {
|
func (NextPrevPart) Aliases() []string {
|
||||||
return []string{"next-part", "prev-part"}
|
return []string{"next-part", "prev-part"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevPart) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (NextPrevPart) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevPart) Execute(aerc *widgets.Aerc, args []string) error {
|
func (NextPrevPart) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
return nextPrevPartUsage(args[0])
|
return nextPrevPartUsage(args[0])
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,16 +11,16 @@ func init() {
|
||||||
register(NextPrevMsg{})
|
register(NextPrevMsg{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevMsg) Aliases() []string {
|
func (NextPrevMsg) Aliases() []string {
|
||||||
return []string{"next", "next-message", "prev", "prev-message"}
|
return []string{"next", "next-message", "prev", "prev-message"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevMsg) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (NextPrevMsg) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error {
|
|
||||||
err, n, pct := account.ParseNextPrevMessage(args)
|
err, n, pct := account.ParseNextPrevMessage(args)
|
||||||
|
func (NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,15 +20,15 @@ func init() {
|
||||||
register(Open{})
|
register(Open{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Open) Aliases() []string {
|
func (Open) Aliases() []string {
|
||||||
return []string{"open"}
|
return []string{"open"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Open) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Open) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Open) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Open) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: open")
|
return errors.New("Usage: open")
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,15 +22,15 @@ func init() {
|
||||||
register(Save{})
|
register(Save{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Save) Aliases() []string {
|
func (Save) Aliases() []string {
|
||||||
return []string{"save"}
|
return []string{"save"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Save) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Save) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Save) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Save) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
opts, optind, err := getopt.Getopts(args, "p")
|
opts, optind, err := getopt.Getopts(args, "p")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -13,15 +13,15 @@ func init() {
|
||||||
register(ToggleHeaders{})
|
register(ToggleHeaders{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ToggleHeaders) Aliases() []string {
|
func (ToggleHeaders) Aliases() []string {
|
||||||
return []string{"toggle-headers"}
|
return []string{"toggle-headers"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ToggleHeaders) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (ToggleHeaders) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ ToggleHeaders) Execute(aerc *widgets.Aerc, args []string) error {
|
func (ToggleHeaders) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
return toggleHeadersUsage(args[0])
|
return toggleHeadersUsage(args[0])
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,15 +13,15 @@ func init() {
|
||||||
register(NewAccount{})
|
register(NewAccount{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NewAccount) Aliases() []string {
|
func (NewAccount) Aliases() []string {
|
||||||
return []string{"new-account"}
|
return []string{"new-account"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NewAccount) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (NewAccount) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NewAccount) Execute(aerc *widgets.Aerc, args []string) error {
|
func (NewAccount) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
opts, _, err := getopt.Getopts(args, "t")
|
opts, _, err := getopt.Getopts(args, "t")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("Usage: new-account [-t]")
|
return errors.New("Usage: new-account [-t]")
|
||||||
|
|
|
@ -14,15 +14,15 @@ func init() {
|
||||||
register(NextPrevTab{})
|
register(NextPrevTab{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevTab) Aliases() []string {
|
func (NextPrevTab) Aliases() []string {
|
||||||
return []string{"next-tab", "prev-tab"}
|
return []string{"next-tab", "prev-tab"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevTab) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (NextPrevTab) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ NextPrevTab) Execute(aerc *widgets.Aerc, args []string) error {
|
func (NextPrevTab) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) > 2 {
|
if len(args) > 2 {
|
||||||
return nextPrevTabUsage(args[0])
|
return nextPrevTabUsage(args[0])
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,15 +13,15 @@ func init() {
|
||||||
register(Prompt{})
|
register(Prompt{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Prompt) Aliases() []string {
|
func (Prompt) Aliases() []string {
|
||||||
return []string{"prompt"}
|
return []string{"prompt"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Prompt) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Prompt) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil // TODO: add completions
|
return nil // TODO: add completions
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Prompt) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Prompt) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) < 3 {
|
if len(args) < 3 {
|
||||||
return errors.New(fmt.Sprintf("Usage: %s <prompt> <cmd>", args[0]))
|
return errors.New(fmt.Sprintf("Usage: %s <prompt> <cmd>", args[0]))
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,15 +14,15 @@ func init() {
|
||||||
register(PrintWorkDir{})
|
register(PrintWorkDir{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ PrintWorkDir) Aliases() []string {
|
func (PrintWorkDir) Aliases() []string {
|
||||||
return []string{"pwd"}
|
return []string{"pwd"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ PrintWorkDir) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (PrintWorkDir) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ PrintWorkDir) Execute(aerc *widgets.Aerc, args []string) error {
|
func (PrintWorkDir) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: pwd")
|
return errors.New("Usage: pwd")
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,11 +12,11 @@ func init() {
|
||||||
register(Quit{})
|
register(Quit{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Quit) Aliases() []string {
|
func (Quit) Aliases() []string {
|
||||||
return []string{"quit", "exit"}
|
return []string{"quit", "exit"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Quit) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Quit) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ func (err ErrorExit) Error() string {
|
||||||
return "exit"
|
return "exit"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Quit) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Quit) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: quit")
|
return errors.New("Usage: quit")
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,12 @@ func init() {
|
||||||
register(Set{})
|
register(Set{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Set) Aliases() []string {
|
func (Set) Aliases() []string {
|
||||||
return []string{"set"}
|
return []string{"set"}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Set) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Set) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,6 @@ func SetCore(aerc *widgets.Aerc, args []string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Set) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Set) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
return SetCore(aerc, args)
|
return SetCore(aerc, args)
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,11 @@ func init() {
|
||||||
register(Term{})
|
register(Term{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Term) Aliases() []string {
|
func (Term) Aliases() []string {
|
||||||
return []string{"terminal", "term"}
|
return []string{"terminal", "term"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Term) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Term) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +55,6 @@ func TermCore(aerc *widgets.Aerc, args []string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Term) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Term) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
return TermCore(aerc, args)
|
return TermCore(aerc, args)
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,15 +12,15 @@ func init() {
|
||||||
register(Close{})
|
register(Close{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Close) Aliases() []string {
|
func (Close) Aliases() []string {
|
||||||
return []string{"close"}
|
return []string{"close"}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Close) Complete(aerc *widgets.Aerc, args []string) []string {
|
func (Close) Complete(aerc *widgets.Aerc, args []string) []string {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ Close) Execute(aerc *widgets.Aerc, args []string) error {
|
func (Close) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
return errors.New("Usage: close")
|
return errors.New("Usage: close")
|
||||||
}
|
}
|
||||||
|
|
|
@ -301,7 +301,7 @@ func (aerc *Aerc) SelectTab(name string) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (aerc *Aerc) SelectTabIndex(index int) bool {
|
func (aerc *Aerc) SelectTabIndex(index int) bool {
|
||||||
for i, _ := range aerc.tabs.Tabs {
|
for i := range aerc.tabs.Tabs {
|
||||||
if i == index {
|
if i == index {
|
||||||
aerc.tabs.Select(i)
|
aerc.tabs.Select(i)
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -92,7 +92,7 @@ type nullHistory struct {
|
||||||
input *ui.TextInput
|
input *ui.TextInput
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ *nullHistory) Add(string) {}
|
func (*nullHistory) Add(string) {}
|
||||||
|
|
||||||
func (h *nullHistory) Next() string {
|
func (h *nullHistory) Next() string {
|
||||||
return h.input.String()
|
return h.input.String()
|
||||||
|
@ -102,4 +102,4 @@ func (h *nullHistory) Prev() string {
|
||||||
return h.input.String()
|
return h.input.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_ *nullHistory) Reset() {}
|
func (*nullHistory) Reset() {}
|
||||||
|
|
Loading…
Reference in a new issue