You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In commands/copy.go
Created new function getPasswordFromEnv to work as a fallback
password if the -p flag is not set. Important to note, the -p
flag takes priority over the env var, as it should.
Updated logic to check password length before using it to encrypt
In commands/env.go
Added new env const:
const pbgopyPasswordFileEnv = "PBGOPY_PASSWORD_FILE"
In commands/paste.go
Updated logic to check password length before using it to decrypt
In commands/copy.go
Updated variable name 'fileLoc to filepath'
Updated comparison from pass len to pass value
In commands/paste.go
Updated comparison from pass len to pass value
It's a bit of a hassle to set the password every time; hence it would be nice to set it in an environment variable beforehand.
The text was updated successfully, but these errors were encountered: