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/menu.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/menu.go')
-rw-r--r-- | commands/menu.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/commands/menu.go b/commands/menu.go index 4db1a1d7..4908a2a2 100644 --- a/commands/menu.go +++ b/commands/menu.go @@ -16,12 +16,12 @@ import ( ) type Menu struct { - ErrExit bool `opt:"-e"` - Background bool `opt:"-b"` - Accounts bool `opt:"-a"` - Directories bool `opt:"-d"` - Command string `opt:"-c"` - Xargs string `opt:"..." complete:"CompleteXargs"` + ErrExit bool `opt:"-e" desc:"Stop executing commands on the first error."` + Background bool `opt:"-b" desc:"Do NOT spawn the popover dialog."` + Accounts bool `opt:"-a" desc:"Feed command with account names."` + Directories bool `opt:"-d" desc:"Feed command with folder names."` + Command string `opt:"-c" desc:"Override [general].default-menu-cmd."` + Xargs string `opt:"..." complete:"CompleteXargs" desc:"Command name."` } func init() { |