Skip to content

Commit

Permalink
cli/object: Print out first part in object split info
Browse files Browse the repository at this point in the history
It was added within #2729, and also worth showing. Affected commands are
`get`, `head` and `range.`

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Dec 24, 2024
1 parent e668e37 commit 156433f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog for NeoFS Node

### Added
- Initial support for meta-on-chain for objects (#2877)
- First split-object part into the CLI output (#3064)

### Fixed
- `neofs-cli object delete` command output (#3056)
Expand Down
3 changes: 3 additions & 0 deletions cmd/neofs-cli/modules/object/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ func marshalSplitInfo(cmd *cobra.Command, info *object.SplitInfo) ([]byte, error
if link := info.GetLink(); !link.IsZero() {
b.WriteString("Linking object: " + link.String() + "\n")
}
if first := info.GetFirstPart(); !first.IsZero() {
b.WriteString("First object: " + first.String() + "\n")
}

Check warning on line 174 in cmd/neofs-cli/modules/object/range.go

View check run for this annotation

Codecov / codecov/patch

cmd/neofs-cli/modules/object/range.go#L172-L174

Added lines #L172 - L174 were not covered by tests
if last := info.GetLastPart(); !last.IsZero() {
b.WriteString("Last object: " + last.String() + "\n")
}
Expand Down

0 comments on commit 156433f

Please sign in to comment.