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/account/compose.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands/account/compose.go') diff --git a/commands/account/compose.go b/commands/account/compose.go index 9eeb339b..5e5d3e0f 100644 --- a/commands/account/compose.go +++ b/commands/account/compose.go @@ -16,10 +16,10 @@ import ( ) type Compose struct { - Headers string `opt:"-H" action:"ParseHeader"` - Template string `opt:"-T" complete:"CompleteTemplate"` - Edit bool `opt:"-e"` - NoEdit bool `opt:"-E"` + Headers string `opt:"-H" action:"ParseHeader" desc:"Add the specified header to the message."` + Template string `opt:"-T" complete:"CompleteTemplate" desc:"Template name."` + Edit bool `opt:"-e" desc:"Force [compose].edit-headers = true."` + NoEdit bool `opt:"-E" desc:"Force [compose].edit-headers = false."` Body string `opt:"..." required:"false"` } -- cgit