[#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>
fyrchik/simplify-services
Pavel Karpy 2022-11-10 18:49:58 +03:00 committed by fyrchik
parent 481b48b942
commit 09a59fef56
2 changed files with 2 additions and 0 deletions

View File

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

View File

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