From d0803ce0d9ed5c167d4645d2aefe1d4c220786b6 Mon Sep 17 00:00:00 2001 From: Christian Flamm Date: Tue, 27 Aug 2019 11:03:10 +0200 Subject: [PATCH] update documentation --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index a73df45..627c9b9 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,17 @@ AWS_SECURITY_TOKEN=... In case you find that `condrenew` command somewhat useless you got it pretty much right - because that's what `afpre` does anyway. But since version `0.9.15` both commands are available for subprocesses as well. So even (e. g.) running scripts could trigger their own token renewals. +## Run Commands in an afpre Session + +You can pass commands to `afpre` after a separating `--`. The session will close immediatly after the command has exited. Typically this is very usefull when iterating over accounts and running a command in all of them. + +``` +$ ./afpre [OPTIONS] -- +``` + +Commands can also be Bash functions. Make sure to export them using `export -f ` to make them available in the afpre session. + + ## Configuration ```