Update the Command interface to include a Description() method.
Implement the method for all commands using short descriptions inspired
from the aerc(1) man page.
Return the description values along with command names so that they can
be displayed in completion choices.
Implements: https://todo.sr.ht/~rjarry/aerc/271
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bojan Gabric <bojan@bojangabric.com>
Tested-by: Jason Cox <me@jasoncarloscox.com>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Currently if you want to explore what templates resolve to, it's a bit
of pain. Add an echo command that doesn't do anything, other than prints
the string that is its argument with the templates resolved.
Implements: https://todo.sr.ht/~rjarry/aerc/277
Changelog-added: New `:echo` command that prints its arguments with
templates resolved.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Reviewed-by: Tristan Partin <tristan@partin.io>
Acked-by: Robin Jarry <robin@jarry.cc>