This PR introduces the possibility to perform a search on pin names (case-sensitive, exact search). The command ipfs pin ls --name "pinName" will return all the pins labeled as pinName.
Notes:
The conditiondisplayNames || name != "" is implemented to prevent redundancy in specifying the --nameoption. This ensures that users can simply use ipfs ls --name Ainstead of ipfs ls --names --name A.
@hacdias Thank you for the review. I agree that it could be more beneficial to search for contained keywords. I'll wait for input from @lidel before proceeding with the suggestions you proposed.
Closes #10281.
This PR introduces the possibility to perform a search on pin names (case-sensitive, exact search). The command
ipfs pin ls --name "pinName"
will return all the pins labeled aspinName
.Notes:
displayNames || name != ""
is implemented to prevent redundancy in specifying the--name
option. This ensures that users can simply useipfs ls --name A
instead ofipfs ls --names --name A
.