aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/pipe.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-10-12 00:21:46 +0200
committerRobin Jarry <robin@jarry.cc>2024-10-23 10:22:51 +0200
commitd0484b153aa5fa80c415f4025aef493eba167e12 (patch)
tree663b4d52d6f7e070477963346e3e3699eca8c384 /commands/msg/pipe.go
parent26033eaecfe6733b2f911dea283433df11773256 (diff)
downloadaerc-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/msg/pipe.go')
-rw-r--r--commands/msg/pipe.go10
1 files changed, 5 insertions, 5 deletions
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:"..."`
}