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

[Proposal] RC2 Live & Static CLI Output #484

Closed
joehand opened this Issue Jun 15, 2016 · 8 comments

Comments

Projects
None yet
4 participants
@joehand
Member

joehand commented Jun 15, 2016

Proposal for outputs on the CLI main four functions: share live, share static, download live, download static. (cc @maxogden @mafintosh @karissa). (Continues the conversation a bit in release rc2 issue).

Sharing

Share Live Folder

$ dat share .
Creating Dat: /Users/joe/node_modules/dat/tests/fixtures

  [Added] folder
  [Added] folder/empty.txt
  [Added] all_hour.csv

Files: 3  Size: 1.44 kB
[Secret Key] dccb16b2a27c603109d1ec858cb24335777522d311a31f1f614ad4b2d47e3a3b
[Status]
  Watching /Users/joe/node_modules/dat/tests/fixtures...
  Waiting for connections...

Resume Share Live Folder (same directory)

$ dat share .
Resuming Dat: /Users/joe/node_modules/dat/tests/fixtures

  [Added] new_file.md

Files: 4  Size: 1.54 kB
[Secret Key] dccb16b2a27c603109d1ec858cb24335777522d311a31f1f614ad4b2d47e3a3b
[Status]
  Watching /Users/joe/node_modules/dat/tests/fixtures...
  Waiting for connections...

Share Snapshot

Note: Share can be done without explicit share command

$ dat tests/fixtures --snapshot
Creating Dat: tests/fixtures

  [Added] folder
  [Added] folder/empty.txt
  [Added] all_hour.csv

Files: 2  Size: 1.44 kB
[Secret Key] 4d74013c32ce739d6c6b960c9371fe3689f6dfba23e8f88d03cc202489a3cd65
[Status]
  Dat Snapshot Finalized
  Waiting for connections...

Downloading

Download Live

$ dat get 75565f6283f1aa6758ef21d2e3b16aaef97413daa280c130adfd3923dff279a2 download_folder
Starting Dat: 75565f6283f1aa6758ef21d2e3b16aaef97413daa280c130adfd3923dff279a2
Downloading to: /Users/joe/Desktop/download_folder

  [Done] folder
  [Done] folder/empty.txt
  [Done] all_hour.csv

[Secret Key] 75565f6283f1aa6758ef21d2e3b16aaef97413daa280c130adfd3923dff279a2
[Completed] 3 files (1.44 kB) 
Latest Version Downloaded, Run Again to Update
(process exits)

Download Snapshot

Note: Download can be done without explicit get command

$ dat 4d74013c32ce739d6c6b960c9371fe3689f6dfba23e8f88d03cc202489a3cd65 download_folder
Starting Dat: 4d74013c32ce739d6c6b960c9371fe3689f6dfba23e8f88d03cc202489a3cd65
Downloading to: /Users/joe/Desktop/download_folder

  [Done] folder
  [Done] folder/empty.txt
  [Done] all_hour.csv

[Secret Key] 4d74013c32ce739d6c6b960c9371fe3689f6dfba23e8f88d03cc202489a3cd65
[Completed] 3 files (1.44 kB) 
Snapshot Downloaded
(process exits)
@mafintosh

This comment has been minimized.

Show comment
Hide comment
@mafintosh

mafintosh Jun 15, 2016

Member

Looks great. I'd make it more clear in the output that you should share "Secret Key" with your friends.

Member

mafintosh commented Jun 15, 2016

Looks great. I'd make it more clear in the output that you should share "Secret Key" with your friends.

@waldoj

This comment has been minimized.

Show comment
Hide comment
@waldoj

waldoj Jun 15, 2016

Contributor

Is the "secret" nomenclature (instead of "private") intended to avoid conflation with public-key cryptography terminology? A "secret" sounds like something that shouldn't be shared with anybody—I wouldn't guess that it's something that I could or should share with friends.

Contributor

waldoj commented Jun 15, 2016

Is the "secret" nomenclature (instead of "private") intended to avoid conflation with public-key cryptography terminology? A "secret" sounds like something that shouldn't be shared with anybody—I wouldn't guess that it's something that I could or should share with friends.

@joehand

This comment has been minimized.

Show comment
Hide comment
@joehand

joehand Jun 15, 2016

Member

@waldoj the word was inspired by https://gist.github.com/. It's not necessarily private; if the key is shared publicly then it is no longer private (even if you don't share it).

We should make it clearer that you are supposed to share that key, though maybe selectively. We could add a note similar to what gist uses: "Secret gists are hidden from search engines but visible to anyone you give the URL."

Member

joehand commented Jun 15, 2016

@waldoj the word was inspired by https://gist.github.com/. It's not necessarily private; if the key is shared publicly then it is no longer private (even if you don't share it).

We should make it clearer that you are supposed to share that key, though maybe selectively. We could add a note similar to what gist uses: "Secret gists are hidden from search engines but visible to anyone you give the URL."

@mafintosh

This comment has been minimized.

Show comment
Hide comment
@mafintosh

mafintosh Jun 16, 2016

Member

Someone like "Only users that have your dat link will be able to download your files"

Member

mafintosh commented Jun 16, 2016

Someone like "Only users that have your dat link will be able to download your files"

@mafintosh

This comment has been minimized.

Show comment
Hide comment
@mafintosh

mafintosh Jun 16, 2016

Member

@joehand How do i keep a live session open when downloading?

Member

mafintosh commented Jun 16, 2016

@joehand How do i keep a live session open when downloading?

@joehand

This comment has been minimized.

Show comment
Hide comment
@joehand

joehand Jun 16, 2016

Member

@mafintosh: @maxogden and I talked yesterday about not keeping the live connection open by default (the desktop/web may be more useful for that). If you want to update a folder via CLI you just run it again.

I don't think a --live option will work on the download side, since the user won't necessarily know if a hash is live. But if we just have an option to keep download open regardless (like we did with --seed), that may work.

Member

joehand commented Jun 16, 2016

@mafintosh: @maxogden and I talked yesterday about not keeping the live connection open by default (the desktop/web may be more useful for that). If you want to update a folder via CLI you just run it again.

I don't think a --live option will work on the download side, since the user won't necessarily know if a hash is live. But if we just have an option to keep download open regardless (like we did with --seed), that may work.

@thadguidry

This comment has been minimized.

Show comment
Hide comment
@thadguidry

thadguidry Jun 16, 2016

thadguidry commented Jun 16, 2016

@joehand

This comment has been minimized.

Show comment
Hide comment
@joehand

joehand Jun 16, 2016

Member

Updated language a bit from these suggestions
screen shot 2016-06-16 at 10 02 30

See PR #485 for full details.

Member

joehand commented Jun 16, 2016

Updated language a bit from these suggestions
screen shot 2016-06-16 at 10 02 30

See PR #485 for full details.

@joehand joehand closed this Jun 17, 2016

joehand added a commit that referenced this issue Jun 17, 2016

Merge pull request #485 from joehand/dat-folder
Adds a .dat folder and updates to RC2 API (#476, #484)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment