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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add read command #405

Open
wants to merge 3 commits into
base: sprint-1.11
Choose a base branch
from
Open

Conversation

lpoli
Copy link
Contributor

@lpoli lpoli commented Apr 8, 2023

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:

  • Ensure system tests are passing. If not Run them manually to check for any regressions 馃搵
  • Do any new system tests need added to test this change? do any existing system tests need updated? If so create a PR at 0chain/system_test
  • Merge your system tests PR to master AFTER merging this PR

Associated PRs (Link as appropriate):

remotePath := cmd.Flag("remotepath").Value.String()
authTicket := cmd.Flag("authticket").Value.String()
lookupHash := cmd.Flag("lookuphash").Value.String()
verifyDownload, err := cmd.Flags().GetBool("verifydownload")
Copy link
Member

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")
Copy link
Member

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.

@Kishan-Dhakan
Copy link
Contributor

@lpoli what's the status of this PR?

@Jayashsatolia403 Jayashsatolia403 changed the base branch from staging to sprint-1.11 November 1, 2023 22:14
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.

None yet

3 participants