Specification
We want to add export behaviour to the secrets env command. This will act similar to how export key="value" in linux. Essentially it will add the secrets selected with -e vault:secretPath to be added to the current environment.
This will need to work on all of the supported platforms. So it needs to work on windows too.
Unless I'm missing any nuance it should be as simple as adding the envs with process.env[key]=value;.
We need to decide if it will work along side the other functionality or become the main function when run. For example, if we run the command with polykey secrets env -e vault1:secret1 --export some command will it run some command AND export to the current environment? OR just export? Same for the formatted outputs?
Additional context
Tasks
Specification
We want to add export behaviour to the
secrets envcommand. This will act similar to howexport key="value"in linux. Essentially it will add the secrets selected with-e vault:secretPathto be added to the current environment.This will need to work on all of the supported platforms. So it needs to work on windows too.
Unless I'm missing any nuance it should be as simple as adding the envs with
process.env[key]=value;.We need to decide if it will work along side the other functionality or become the main function when run. For example, if we run the command with
polykey secrets env -e vault1:secret1 --export some commandwill it runsome commandAND export to the current environment? OR just export? Same for the formatted outputs?Additional context
pk secrets envcommand for meeting Development Environment Usecase #31secrets envcommand #129secrets envcommand formatting options #144Tasks
--exportflag which will add the selected secrets to the current environment.