neofs-node icon indicating copy to clipboard operation
neofs-node copied to clipboard

cli: Document `--filters` flag of `object search` command

Open cthulhu-rider opened this issue 1 year ago • 0 comments

Originally posted by @aprasolova

format of object filters in neofs-cli object search --filters ... command is not specified anywhere outside the code. I't not obvious how to set attribute matcher, e.g.:

# works
--filters 'FilePath EQ cat.jpg'

cmp with

# doesn't work
--filters 'FilePath=cat.jpg'

command help doesn't reveal the format too:

$ neofs-cli object search -h
-f, --filters strings       Repeated filter expressions or files with protobuf JSON

i propose to describe format with examples for most wanted cases

cthulhu-rider avatar May 22 '23 10:05 cthulhu-rider