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