Files
2026-04-07 19:54:54 -04:00

31 lines
454 B
Go

package commands
import (
"git.sr.ht/~rjarry/aerc/app"
)
type Echo struct {
Template string `opt:"..." required:"false"`
}
func init() {
Register(Echo{})
}
func (Echo) Description() string {
return "Print text after template expansion."
}
func (Echo) Aliases() []string {
return []string{"echo"}
}
func (Echo) Context() CommandContext {
return GLOBAL
}
func (e Echo) Execute(args []string) error {
app.PushSuccess(e.Template)
return nil
}