Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Flamm committed Aug 27, 2019
1 parent 0009bd0 commit d0803ce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] -- <command>
```

Commands can also be Bash functions. Make sure to export them using `export -f <function name>` to make them available in the afpre session.


## Configuration

```
Expand Down

0 comments on commit d0803ce

Please sign in to comment.