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/pipe.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'commands/msg/pipe.go') diff --git a/commands/msg/pipe.go b/commands/msg/pipe.go index f66e7dca..7a630b55 100644 --- a/commands/msg/pipe.go +++ b/commands/msg/pipe.go @@ -21,11 +21,11 @@ import ( ) type Pipe struct { - Background bool `opt:"-b"` - Silent bool `opt:"-s"` - Full bool `opt:"-m"` - Decrypt bool `opt:"-d"` - Part bool `opt:"-p"` + Background bool `opt:"-b" desc:"Run the command in the background."` + Silent bool `opt:"-s" desc:"Silently close the terminal tab after the command exits."` + Full bool `opt:"-m" desc:"Pipe the full message."` + Decrypt bool `opt:"-d" desc:"Decrypt the full message before piping."` + Part bool `opt:"-p" desc:"Only pipe the selected message part."` Command string `opt:"..."` } -- cgit