Allow op run to continue to command if env file not found
This might seem like a strange use case, but would like a flag on the op run command which will continue (maybe print a warning) if the file referenced in the --env-file
argument is not found.
Why? We have some development automation which automates common tasks for developers. Some developers like the 1Password integration and use it, some do not. To support those who do not, we end up with stuff like this in our development scripts:
if [[ -f ".env.1password" ]] then echo "Using .env.1password for environment" op account get if [[ $? -ne 0 ]] then eval $(op signin) fi echo $(pwd) CMD_PREFIX='op run --env-file=.env.1password -- ' else echo "Skipping environment load from 1Password" fi ${CMD_PREFIX}ACTUAL_COMMAND
Would be easier if we could just always call op but have it quietly continue if the referenced file isn't found. Still would require devs to install op CLI, but that's not a big deal most of the time.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
0
This discussion has been closed.