blob: f2c50b15b5186dfef46ef1c01e26f02268f0e13c (
plain) (
tree)
|
|
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) 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)
}
|