aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/export-mbox.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-10-12 00:21:45 +0200
committerRobin Jarry <robin@jarry.cc>2024-10-23 10:22:51 +0200
commit26033eaecfe6733b2f911dea283433df11773256 (patch)
tree8aa1453e1aca6e6dd579615eed377fbe5a315522 /commands/account/export-mbox.go
parent3c9ad93801ce9bb71d76fa398d7d94f1afd2c2cb (diff)
downloadaerc-26033eaecfe6733b2f911dea283433df11773256.tar.gz
completion: add commands descriptions
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>
Diffstat (limited to 'commands/account/export-mbox.go')
-rw-r--r--commands/account/export-mbox.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/account/export-mbox.go b/commands/account/export-mbox.go
index 619c24a2..fed8568e 100644
--- a/commands/account/export-mbox.go
+++ b/commands/account/export-mbox.go
@@ -26,6 +26,10 @@ func init() {
commands.Register(ExportMbox{})
}
+func (ExportMbox) Description() string {
+ return "Export messages in the current folder to an mbox file."
+}
+
func (ExportMbox) Context() commands.CommandContext {
return commands.MESSAGE_LIST
}