hypercore-protocol / cli

A CLI for peer-to-peer file sharing using the Hypercore Protocol.
MIT License
205 stars 17 forks source link

Add copy command #2

Closed andrewosh closed 3 years ago

andrewosh commented 3 years ago

The copy command is very similar to diff, but it doesn't compare contents. It also supports two new modes if a target isn't specified:

  1. If you're copying a local directory without a target, it will copy the directory into a new drive.
  2. If you're copying a drive without a target, it will copy the drive's contents into a new directory (named by the drive key).
pfrazee commented 3 years ago

Looks good!

pfrazee commented 3 years ago

You know what this does need, though- if it creates a drive for you, it needs to tell you the URL