Fix scdoc & gofmt issues
This commit is contained in:
parent
b8208509f4
commit
ca2cd00fe7
|
@ -29,5 +29,3 @@ func Compose(aerc *widgets.Aerc, args []string) error {
|
||||||
})
|
})
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,11 +8,11 @@ import (
|
||||||
gomail "net/mail"
|
gomail "net/mail"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"git.sr.ht/~sircmpwn/getopt"
|
||||||
|
"github.com/emersion/go-imap"
|
||||||
"github.com/emersion/go-message"
|
"github.com/emersion/go-message"
|
||||||
_ "github.com/emersion/go-message/charset"
|
_ "github.com/emersion/go-message/charset"
|
||||||
"github.com/emersion/go-message/mail"
|
"github.com/emersion/go-message/mail"
|
||||||
"github.com/emersion/go-imap"
|
|
||||||
"git.sr.ht/~sircmpwn/getopt"
|
|
||||||
|
|
||||||
"git.sr.ht/~sircmpwn/aerc/widgets"
|
"git.sr.ht/~sircmpwn/aerc/widgets"
|
||||||
)
|
)
|
||||||
|
@ -26,7 +26,7 @@ func Reply(aerc *widgets.Aerc, args []string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if optind != len(args) - 1 {
|
if optind != len(args)-1 {
|
||||||
return errors.New("Usage: reply [-aq]")
|
return errors.New("Usage: reply [-aq]")
|
||||||
}
|
}
|
||||||
var (
|
var (
|
||||||
|
@ -153,7 +153,7 @@ func Reply(aerc *widgets.Aerc, args []string) error {
|
||||||
msg.Envelope.Date.Format("Mon Jan 2, 2006 at 3:04 PM"),
|
msg.Envelope.Date.Format("Mon Jan 2, 2006 at 3:04 PM"),
|
||||||
msg.Envelope.From[0].PersonalName))
|
msg.Envelope.From[0].PersonalName))
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
io.WriteString(pipein, fmt.Sprintf("> %s\n",scanner.Text()))
|
io.WriteString(pipein, fmt.Sprintf("> %s\n", scanner.Text()))
|
||||||
}
|
}
|
||||||
pipein.Close()
|
pipein.Close()
|
||||||
pipeout.Close()
|
pipeout.Close()
|
||||||
|
@ -165,5 +165,3 @@ func Reply(aerc *widgets.Aerc, args []string) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,4 +27,3 @@ func ViewMessage(aerc *widgets.Aerc, args []string) error {
|
||||||
aerc.NewTab(viewer, msg.Envelope.Subject)
|
aerc.NewTab(viewer, msg.Envelope.Subject)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,4 +18,3 @@ func CommandClose(aerc *widgets.Aerc, args []string) error {
|
||||||
aerc.RemoveTab(mv)
|
aerc.RemoveTab(mv)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ available:
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
`pass hostname/username`
|
pass hostname/username
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ available:
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
`pass hostname/username`
|
pass hostname/username
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue