CLI for gsenha-api using gsenha-python
make install
make dist
Now dist/gsenha binary will me available.
gsenha get --folder folder --name name1 --name name2 ... ---prefix GSENHA_
This will return an export for each variable as uppercase as follows:
export GSENHA_NAME1_DESCRIPTION='value1'
export GSENHA_NAME2_DESCRIPTION='value2'
Using Bash you can export variables using:
command_output=$(gsenha get --folder folder --name name1 --name name2 ... ---prefix GSENHA_)
eval "$(command_output)"
We did a function example for it.
- GSENHA_ENDPOINT: Endpoint for gsenha-api
- GSENHA_USER: User for gsenha-api
- GSENHA_PASS: Password for gsenha-api
- GSENHA_KEY: User's private key for gsenha-api
- GSENHA_KEY_PATH: User's private key path for gsenha-api