From ddba9180ef91bc27d446121f9232d67114ed2203 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Thu, 10 Nov 2022 18:49:58 +0300 Subject: [PATCH] [#2029] cli: Allow attaching static session to `object hash` All the other object commands already have it. Signed-off-by: Pavel Karpy --- CHANGELOG.md | 2 ++ cmd/neofs-cli/modules/object/hash.go | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aec948fcb3..35d7abb5c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Changelog for NeoFS Node ## [Unreleased] ### Added +- `session` flag support to `neofs-cli object hash` (#2029) + ### Changed - `object lock` command reads CID and OID the same way other commands do (#1971) diff --git a/cmd/neofs-cli/modules/object/hash.go b/cmd/neofs-cli/modules/object/hash.go index 9ab76d3d16..6abda6cbb4 100644 --- a/cmd/neofs-cli/modules/object/hash.go +++ b/cmd/neofs-cli/modules/object/hash.go @@ -32,6 +32,7 @@ var objectHashCmd = &cobra.Command{ func initObjectHashCmd() { commonflags.Init(objectHashCmd) + initFlagSession(objectHeadCmd, "RANGEHASH") flags := objectHashCmd.Flags()