init: pristine aerc 0.20.0 source

This commit is contained in:
Mortdecai
2026-04-07 19:54:54 -04:00
commit 083402a548
502 changed files with 68722 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
package patch
import (
"git.sr.ht/~rjarry/aerc/commands"
"git.sr.ht/~rjarry/aerc/lib/pama"
)
type Term struct {
Cmd []string `opt:"..." required:"false"`
}
func init() {
register(Term{})
}
func (Term) Description() string {
return "Open a shell or run a command in the current project's directory."
}
func (Term) Context() commands.CommandContext {
return commands.GLOBAL
}
func (Term) Aliases() []string {
return []string{"term"}
}
func (t Term) Execute(_ []string) error {
p, err := pama.New().CurrentProject()
if err != nil {
return err
}
return commands.TermCoreDirectory(t.Cmd, p.Root)
}