[#2029] cli: Allow attaching static session to object hash

All the other object commands already have it.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-11-10 18:49:58 +03:00 committed by fyrchik
parent 6acb831248
commit ddba9180ef
2 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -32,6 +32,7 @@ var objectHashCmd = &cobra.Command{
func initObjectHashCmd() {
commonflags.Init(objectHashCmd)
initFlagSession(objectHeadCmd, "RANGEHASH")
flags := objectHashCmd.Flags()