aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-09-19 22:51:49 +0200
committerRobin Jarry <robin@jarry.cc>2023-10-28 19:24:40 +0200
commitb336a5c9e19adba31bec1da51e093a11e09a8ead (patch)
tree4ab356b699472e7fa9e1f2445b499f6b1d0ec039 /go.mod
parenta2a692e7736ef82627eae885d17024d92e33cb4a (diff)
downloadaerc-b336a5c9e19adba31bec1da51e093a11e09a8ead.tar.gz
aerc-b336a5c9e19adba31bec1da51e093a11e09a8ead.zip
commands: pass raw command line down to template evaluation
Some commands need to invoke others and/or run shell commands. For this, we need the raw command line as entered by the user. Pass it down the call chain just before it is split to invoke the command Execute method. Remove unit tests for the template expand() test which does have any added value now that it is performed on a single string without any quote juggling. Update all code to handle a single string instead of a list of arguments. Introduce a new dependency on git.sr.ht/~rjarry/go-opt to deal with shell splitting. This is in preparation for using opt.ArgsToStruct to parse arguments for all aerc commands. There should be no functional change after this patch. Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Koni Marti <koni.marti@gmail.com> Tested-by: Moritz Poldrack <moritz@poldrack.dev> Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod3
1 files changed, 2 insertions, 1 deletions
diff --git a/go.mod b/go.mod
index 9b712a34..d5121870 100644
--- a/go.mod
+++ b/go.mod
@@ -3,6 +3,7 @@ module git.sr.ht/~rjarry/aerc
go 1.18
require (
+ git.sr.ht/~rjarry/go-opt v1.2.0
git.sr.ht/~rockorager/go-jmap v0.3.0
git.sr.ht/~rockorager/tcell-term v0.8.0
git.sr.ht/~sircmpwn/getopt v1.0.0
@@ -30,7 +31,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/rivo/uniseg v0.4.4
github.com/riywo/loginshell v0.0.0-20200815045211-7d26008be1ab
- github.com/stretchr/testify v1.8.2
+ github.com/stretchr/testify v1.8.4
github.com/syndtr/goleveldb v1.0.0
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e
golang.org/x/oauth2 v0.7.0