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/msg/move.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands/msg/move.go') diff --git a/commands/msg/move.go b/commands/msg/move.go index 63473b13..80f13a22 100644 --- a/commands/msg/move.go +++ b/commands/msg/move.go @@ -17,10 +17,10 @@ import ( ) type Move struct { - CreateFolders bool `opt:"-p"` - Account string `opt:"-a" complete:"CompleteAccount"` - MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS"` - Folder string `opt:"folder" complete:"CompleteFolder"` + CreateFolders bool `opt:"-p" desc:"Create missing folders if required."` + Account string `opt:"-a" complete:"CompleteAccount" desc:"Move to specified account."` + MultiFileStrategy *types.MultiFileStrategy `opt:"-m" action:"ParseMFS" complete:"CompleteMFS" desc:"Multi-file strategy."` + Folder string `opt:"folder" complete:"CompleteFolder" desc:"Target folder."` } func init() { -- cgit