-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add read command #405
base: sprint-1.11
Are you sure you want to change the base?
Add read command #405
Conversation
remotePath := cmd.Flag("remotepath").Value.String() | ||
authTicket := cmd.Flag("authticket").Value.String() | ||
lookupHash := cmd.Flag("lookuphash").Value.String() | ||
verifyDownload, err := cmd.Flags().GetBool("verifydownload") |
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.
Let's use verify
to keep it short
readerCmd.PersistentFlags().String("lookuphash", "", "The remote lookuphash of the object retrieved from the list") | ||
readerCmd.Flags().BoolP("thumbnail", "t", false, "pass this option to download only the thumbnail") | ||
|
||
readerCmd.Flags().IntP("blockspermarker", "b", 10, "pass this option to download multiple blocks per marker") |
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.
Let's use blocknum
to keep it short, and remove the pass this option
from the usage field. So could be Number of blocks to download per marker
. Btw, is there any limit to the number.
@lpoli what's the status of this PR? |
A brief description of the changes in this PR:
This PR adds read command that uses io.ReadSeekCloser interface to download file from an allocation.
Tasks to complete before merging PR:
Associated PRs (Link as appropriate):