When invoking the op cli, if the onepassword item had no password recipe, generate-password would always be appended to the cli args and any password value would be overwritten by a generated password.
Note I am very new to Go so please point me in the right direction if needed :)
As part of this fix I have extracted the logic which constructs the generate-password cli arg into a function in utils, and implemented a test around it.
When invoking the op cli, if the onepassword item had no password recipe, generate-password would always be appended to the cli args and any password value would be overwritten by a generated password.
Note I am very new to Go so please point me in the right direction if needed :)
As part of this fix I have extracted the logic which constructs the generate-password cli arg into a function in utils, and implemented a test around it.
Fixes #128