Hi,
Thanks for the answers!
Mixing IDs and names is a great advice! Please add that to the documents, too. :)
Using ID to reference an item can in some cases be even better, as I think it's more common to change the name than the ID (i.e. recreate). But IDs are cryptic. It would also help if the 1Password desktop clients would offer an easy way to see the item ID. Seems that with reduced permissions to a vault, you can't even see the "share/copy" link. And searching with CLI is clumsier than with the Desktop app. After having the item ID, CLI is fine for looking at the details.
About the escaping/quoting it's a bit early for me to tell. For op read
just quoting the whole URI argument (in shell) would be the most natural, but not sure if that works well with e.g. inject
. Replacing spaces with -
or _
doesn't sound tempting, especially if you later support other "weird" characters.
I guess it would be best if all possible way are supported. Meaning quoting, escaping spaces and /
characters in the names, etc. Easy to ask, I know. :)