Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: add a default range for object hash to cli help #2984

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

End-rey
Copy link
Contributor

@End-rey End-rey commented Oct 28, 2024

Closes #1693.

The object hash command has logic when len(ranges) == 0, so I don't think it should be made obligatory.

@@ -42,7 +42,7 @@ func initObjectHashCmd() {
flags.String(commonflags.OIDFlag, "", commonflags.OIDFlagUsage)
_ = objectHashCmd.MarkFlagRequired(commonflags.OIDFlag)

flags.String("range", "", "Range to take hash from in the form offset1:length1,...")
flags.String("range", "", "Range to take hash from in the form offset1:length1,... (by default, gets a hash of the full object payload")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

full object payload length if not specified?

@End-rey End-rey force-pushed the 1693-docs-default-range-for-neofs-cli-object-hash branch from 6c287c8 to 4a753f0 Compare October 28, 2024 19:16
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 22.89%. Comparing base (1b2a229) to head (abcfe94).
Report is 11 commits behind head on master.

Files with missing lines Patch % Lines
cmd/neofs-cli/modules/object/hash.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2984      +/-   ##
==========================================
- Coverage   22.90%   22.89%   -0.01%     
==========================================
  Files         785      785              
  Lines       58747    58779      +32     
==========================================
+ Hits        13455    13457       +2     
- Misses      44415    44442      +27     
- Partials      877      880       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Also, print a verbose message if the default range length is used.

Closes #1693.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
@End-rey End-rey force-pushed the 1693-docs-default-range-for-neofs-cli-object-hash branch from 4a753f0 to abcfe94 Compare October 29, 2024 11:03
@carpawell carpawell merged commit d5a65dc into master Oct 29, 2024
18 of 21 checks passed
@carpawell carpawell deleted the 1693-docs-default-range-for-neofs-cli-object-hash branch October 29, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There is some default range for neofs-cli object hash
4 participants