-
Notifications
You must be signed in to change notification settings - Fork 38
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
cli: add a default range for object hash
to cli help
#2984
Conversation
cmd/neofs-cli/modules/object/hash.go
Outdated
@@ -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") |
There was a problem hiding this comment.
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
?
6c287c8
to
4a753f0
Compare
Codecov ReportAttention: Patch coverage is
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. |
Also, print a verbose message if the default range length is used. Closes #1693. Signed-off-by: Andrey Butusov <andrey@nspcc.io>
4a753f0
to
abcfe94
Compare
Closes #1693.
The
object hash
command has logic whenlen(ranges) == 0
, so I don't think it should be made obligatory.