From 09a59fef561aaf844a630fec7e45128aa2104c1d 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 | 1 + cmd/neofs-cli/modules/object/hash.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b35aa7686..2d596e0ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Changelog for NeoFS Node ### Added - `morph list-containers` in `neofs-adm` (#1689) - `--binary` flag in `neofs-cli object put/get/delete` commands (#1338) +- `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 a947cac80..8202aacf3 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()