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

Simpler cli output #491

Closed
mafintosh opened this Issue Jun 20, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@mafintosh
Member

mafintosh commented Jun 20, 2016

Was playing around with ideas to simplify the output of the cli earlier today as an experiment. The linear list of files is good at showing all files in the dat, however it is a bit verbose and makes the cli "jump up/down" once in a while. Files also aren't necessarily being downloaded linearly (the most efficient approach is "rarest first" where you sync the parts of a dat that fewest people are sharing first).

Adding files / resuming a dat you own

Initializing Dat in /Users/maf/dats/test-dat.

Share link: d9ab29a1ac68d8f68921302d03562cfa6880553868f0f37e002cb6d178738cdf
The Share Link is secret and only those you share it with will be able to get the files

[=====>            ] Adding 242/2444 files (100mb/424mb)

Done adding files

Initializing Dat in /Users/maf/dats/test-dat.

Share link: d9ab29a1ac68d8f68921302d03562cfa6880553868f0f37e002cb6d178738cdf
The Share Link is secret and only those you share it with will be able to get the files

[=================>] Added 2444 files (424mb)

Uploading 142 kb/s. Watching for updates...

Adding live updates

Initializing Dat in /Users/maf/dats/test-dat.

Share link: d9ab29a1ac68d8f68921302d03562cfa6880553868f0f37e002cb6d178738cdf
The Share Link is secret and only those you share it with will be able to get the files

[=============>    ] Adding 2 updated files (40mb)

Connected to 30 peers. Uploading 142 kb/s. Watching for updates...

Downloading a dat from a link / re-sharing it

Initializing Dat in /Users/maf/dats/test-dat-clone

Share link: d9ab29a1ac68d8f68921302d03562cfa6880553868f0f37e002cb6d178738cdf
The Share Link is secret and only those you share it with will be able to get the files

[====>             ] Downloading 2444 files (100mb/424mb)

Connected to 30 peers. Downloading 442 kb/s. Uploading 142 kb/s.

Dat fully downloaded

Initializing Dat in /Users/maf/dats/test-dat-clone

Share link: d9ab29a1ac68d8f68921302d03562cfa6880553868f0f37e002cb6d178738cdf
The Share Link is secret and only those you share it with will be able to get the files

[=================>] Downloaded 2444 files (424mb)

Connected to 30 peers. All files downloaded. Uploading 142 kb/s.

Downloading live updated files

Initializing Dat in /Users/maf/dats/test-dat-clone

Share link: d9ab29a1ac68d8f68921302d03562cfa6880553868f0f37e002cb6d178738cdf
The Share Link is secret and only those you share it with will be able to get the files

[=============>    ] Downloading 2 updated files (40mb)

Connected to 30 peers. Downloading 442 kb/s. Uploading 142 kb/s.
@joehand

This comment has been minimized.

Show comment
Hide comment
@joehand

joehand Jun 20, 2016

Member

This looks great!

Member

joehand commented Jun 20, 2016

This looks great!

@joehand

This comment has been minimized.

Show comment
Hide comment
@joehand

joehand Jun 21, 2016

Member

@mafintosh a few questions:

  1. How do we do progress for adding files? I thought we didn't know the total size until we added them.
  2. Is there any way in the live archive to tell its done downloading for now? I've just been comparing downloaded files to total files but that seems weird for large live archives that are being updated.

I'll need to look at the yolowatch stuff a bit to see if we can tell how many files are being updated. Otherwise, most of this (minus progress bars) I put up on the new branch.

Member

joehand commented Jun 21, 2016

@mafintosh a few questions:

  1. How do we do progress for adding files? I thought we didn't know the total size until we added them.
  2. Is there any way in the live archive to tell its done downloading for now? I've just been comparing downloaded files to total files but that seems weird for large live archives that are being updated.

I'll need to look at the yolowatch stuff a bit to see if we can tell how many files are being updated. Otherwise, most of this (minus progress bars) I put up on the new branch.

@mafintosh

This comment has been minimized.

Show comment
Hide comment
@mafintosh

mafintosh Jun 21, 2016

Member

@joehand

  1. The stat object returned from folder-walker contains the size
  2. Yea, we'll add a 'synchronized' event that'll tell you everything available has been downloaded
Member

mafintosh commented Jun 21, 2016

@joehand

  1. The stat object returned from folder-walker contains the size
  2. Yea, we'll add a 'synchronized' event that'll tell you everything available has been downloaded
@karissa

This comment has been minimized.

Show comment
Hide comment
@karissa

karissa Jun 21, 2016

Collaborator

Yeah I like this minimal approach.

Collaborator

karissa commented Jun 21, 2016

Yeah I like this minimal approach.

@maxogden

This comment has been minimized.

Show comment
Hide comment
@maxogden

maxogden Jun 28, 2016

Member

we'll be incorporating these ideas in a future implementation

Member

maxogden commented Jun 28, 2016

we'll be incorporating these ideas in a future implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment