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
ifstrings.Contains(errorMsg, "isn't an item") ||strings.Contains(errorMsg, "not found") {
103
+
return"", false, nil// Item doesn't exist
104
+
}
105
+
// Check for multiple items
106
+
ifstrings.Contains(errorMsg, "More than one item matches") {
107
+
return"", false, fmt.Errorf("multiple items found with title '%s' in vault '%s'. Please use a unique name or delete duplicates in 1Password", title, vault)
108
+
}
109
+
return"", false, fmt.Errorf("failed to check item: %s", strings.TrimSpace(errorMsg))
110
+
}
111
+
112
+
// Item exists - extract ID from JSON (simple approach)
113
+
// In production you'd want proper JSON parsing
114
+
return"", true, nil
115
+
}
116
+
87
117
// CreateItem creates a new Login item in 1Password
88
118
// Returns the 1Password reference (op://vault/title/password)
0 commit comments