-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Labels
op-cliFunctionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.Functionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.
Description
op CLI version
2.31.1
Goal or desired behavior
It would be nice to have a way to specify env variables (regardless of the plugin used), as it's common to provide configuration for tools like this. For example, I need to specify PGSSLROOTCERT for my PostgreSQL connection, someone else wants to set PGTARGETSESSIONATTRS, etc. Of course, we can map all env from documentation, but it would require a lot of work to do so for all plugins.
Maybe a better solution would be to have generic mappers. For example, we can map all env.MY_ENV fields to respective environment variables. The same can be applied to command-line arguments (args.--my-arg)
Current behavior
Right now I have to provide environment variables manually PGSSLROOTCERT=$HOME/.config/my-cloud/ca.pem psql
Metadata
Metadata
Assignees
Labels
op-cliFunctionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.Functionality to be implemented in 1Password CLI. Needs to be done by 1Password Developers.