[#208] Print split ID in object.Head output of neofs-cli

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-11-24 21:19:54 +03:00 committed by Alex Vanin
parent f96630581a
commit 4c0ca23b34

View file

@ -653,6 +653,11 @@ func printHeader(cmd *cobra.Command, obj *object.Object, filename string) error
}
cmd.Printf(" %s=%s\n", attr.Key(), attr.Value())
}
if obj.SplitID() != nil {
cmd.Printf("SplitID: %s\n", obj.SplitID().String())
}
return nil
}