diff options
author | Robin Jarry <robin@jarry.cc> | 2024-10-12 00:21:46 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-10-23 10:22:51 +0200 |
commit | d0484b153aa5fa80c415f4025aef493eba167e12 (patch) | |
tree | 663b4d52d6f7e070477963346e3e3699eca8c384 /commands/compose/switch.go | |
parent | 26033eaecfe6733b2f911dea283433df11773256 (diff) | |
download | aerc-d0484b153aa5fa80c415f4025aef493eba167e12.tar.gz |
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 <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/compose/switch.go')
-rw-r--r-- | commands/compose/switch.go | 6 |
1 files changed, 3 insertions, 3 deletions
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() { |