-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple entries with the same name confuse "get" #230
Comments
its a substring search rbw get redhat.com bugzilla |
OK, so I can see how to programatically make that work (split on / to get the folder, split on last @ to get the name, the rest is the subsearch). But that fails on another duplicate I have, which I just replicated with test entries; one is a login, and one is a credit card.
But I can't get the card details the same way because there's no second search parameter.
|
once you veer off of the basic use case you have to start using --raw to get what you want |
Right, but search don't have the raw option (or even the ability to show the id), so how do I "address" the entry I want to get? That's why I suggested that maybe search could have a |
in my case i changed the few entries to make them accessible |
So I have never written a line of rust before in my life. But I think this diff might make sense? It adds a
Example results:
Does this look sane? Should I propose it as a PR? |
I have two entries for redhat; my RHN login and my bugzilla login
The only way I've been able to use "get" is to do an
ls
with the id field selected (% rbw ls --fields id,folder,user,name | grep redhat
) and then get the entry by id. That would work in this case but may not work if I was searching for an entry, 'cos search just returns the name. Perhaps the "search" option should also have a--fields
option similar to "ls", or maybe a--raw
option to closer matchbw list items --search redhat.com
output?But maybe I'm missing something?
The text was updated successfully, but these errors were encountered: