dat-ecosystem / dat

:floppy_disk: peer-to-peer sharing & live syncronization of files via command line
https://dat.foundation
BSD 3-Clause "New" or "Revised" License
8.24k stars 450 forks source link

ux improvements #1104

Closed okdistribute closed 4 years ago

okdistribute commented 5 years ago

Improvements to make syncing multiple dats a first-class property of dat. This is a proposed UX for integrating dat-store style Daemon into the CLI:

$ dat run-service --config=myConfigFile.ext 
Starting dat service...
$ dat create /Users/okdistribute/Dropbox/videos 
$ dat sync /Users/okdistribute/Dropbox/videos 
$ dat share /Users/okdistribute/Dropbox/videos 
$ dat /Users/okdistribute/Dropbox/videos 
Created dat ...dat://ab234bf2e...
Sharing dat on the network
$ dat clone dat://ade32bfg2e... /Users/okdistribute/data/nature-report 
$ dat dat://ade32bfg2e... /Users/okdistribute/data/nature-report 
Downloading... 
Done.
$ dat stop /Users/okdistribute/data/nature-report
$ dat stop dat://<key>
Stopping syncing...
$ dat info

The future of dat sync and share

sync and share are confusing right now and do different things. instead, they ought to do the same thing and reduce the scope of the cli.

cblgh commented 5 years ago

misc thoughts, updated constantly nota bene, some points might contradict others

it would be nice if..


actual needs

okdistribute commented 5 years ago

so dat init already exists! yay dat init --seed should be the same as dat </path/to/folder>

dat run-service
dat install-service
dat add dat://<key> dat://<key2> dat://<key3>

dat share/sync /path/to/folder /path/to/folder2 /path/to/folder3
dat clone dat://<key> /path/to/folder

daemon

sync and share should be the same thing

started this work on the https://github.com/datproject/dat/tree/dat-v14

RangerMauve commented 4 years ago

Yeet