From 9b32b5523de0eb1d725b8aed10fbbf1cbc7a61bb Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 20 Aug 2021 07:18:59 +0300 Subject: [PATCH] [#760] cli: Support `COMMON_PREFIX` matchtype Signed-off-by: Pavel Karpy --- cmd/neofs-cli/modules/object.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/neofs-cli/modules/object.go b/cmd/neofs-cli/modules/object.go index 8ad1e0ff..be486d25 100644 --- a/cmd/neofs-cli/modules/object.go +++ b/cmd/neofs-cli/modules/object.go @@ -509,8 +509,9 @@ var searchUnaryOpVocabulary = map[string]object.SearchMatchType{ } var searchBinaryOpVocabulary = map[string]object.SearchMatchType{ - "EQ": object.MatchStringEqual, - "NE": object.MatchStringNotEqual, + "EQ": object.MatchStringEqual, + "NE": object.MatchStringNotEqual, + "COMMON_PREFIX": object.MatchCommonPrefix, } func parseSearchFilters(cmd *cobra.Command) (object.SearchFilters, error) {