mirror of
https://github.com/Luzifer/vault2env.git
synced 2024-12-20 20:21:20 +00:00
Add docs for sub-commands with arguments
closes #1 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
864c3170d5
commit
143a0523a8
1 changed files with 11 additions and 3 deletions
14
README.md
14
README.md
|
@ -11,14 +11,22 @@
|
|||
|
||||
In general this program can either output your ENV variables to use with `eval` or similar or it can run a program with populated environment.
|
||||
|
||||
```
|
||||
# vault2env --key=<secret path> <command>
|
||||
```console
|
||||
$ vault2env --key=<secret path> <command>
|
||||
<program is started, you see its output>
|
||||
|
||||
# vault2env --export --key=<secret path>
|
||||
$ vault2env --export --key=<secret path>
|
||||
export ...
|
||||
```
|
||||
|
||||
In case you have a command with arguments you need to separate the command using double dashes, which is a feature of your shell:
|
||||
|
||||
```console
|
||||
$ vault2env --key=<secret path> -- <command with arguments>
|
||||
```
|
||||
|
||||
This prevents `vault2env` from interpreting and complaining about the arguments passed to the sub-command.
|
||||
|
||||
### Using evironment variables
|
||||
```bash
|
||||
# export VAULT_ADDR="https://127.0.0.1:8200"
|
||||
|
|
Loading…
Reference in a new issue