From d0484b153aa5fa80c415f4025aef493eba167e12 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 12 Oct 2024 00:21:46 +0200 Subject: completion: add command option descriptions Add `desc:""` struct field tags in all command arguments where it makes sense. The description values will be returned along with completion choices. Implements: https://todo.sr.ht/~rjarry/aerc/271 Signed-off-by: Robin Jarry Tested-by: Bojan Gabric Tested-by: Jason Cox Acked-by: Tim Culverhouse --- commands/compose/switch.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/compose/switch.go') diff --git a/commands/compose/switch.go b/commands/compose/switch.go index 4bcfc136..55dc86e2 100644 --- a/commands/compose/switch.go +++ b/commands/compose/switch.go @@ -12,9 +12,9 @@ type AccountSwitcher interface { } type SwitchAccount struct { - Next bool `opt:"-n"` - Prev bool `opt:"-p"` - Account string `opt:"account" required:"false" complete:"CompleteAccount"` + Prev bool `opt:"-p" desc:"Switch to previous account."` + Next bool `opt:"-n" desc:"Switch to next account."` + Account string `opt:"account" required:"false" complete:"CompleteAccount" desc:"Account name."` } func init() { -- cgit