mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
15 lines
349 B
Go
15 lines
349 B
Go
package op
|
|
|
|
import (
|
|
"github.com/1Password/onepassword-operator/pkg/testhelper/system"
|
|
)
|
|
|
|
// UpdateItemPassword updates the password of an item in 1Password
|
|
func UpdateItemPassword(item string) error {
|
|
_, err := system.Run("op", "item", "edit", item, "--generate-password=letters,digits,symbols,32")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|