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/attach.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/compose/attach.go') diff --git a/commands/compose/attach.go b/commands/compose/attach.go index f811f5a8..14739127 100644 --- a/commands/compose/attach.go +++ b/commands/compose/attach.go @@ -21,9 +21,9 @@ import ( ) type Attach struct { - Menu bool `opt:"-m"` - Name string `opt:"-r"` - Path string `opt:"path" required:"false" complete:"CompletePath"` + Menu bool `opt:"-m" desc:"Select files from file-picker-cmd."` + Name string `opt:"-r" desc:" : Generate attachment from command output."` + Path string `opt:"path" required:"false" complete:"CompletePath" desc:"Attachment file path."` Args string `opt:"..." required:"false"` } -- cgit