[tahoe-dev] CLI syntax

Brian Warner warner-tahoe at allmydata.com
Mon May 12 12:16:06 PDT 2008


> > The arguments to the 'cp' command refer to local files by default, unless
> > an alias: prefix is used. The LOCALTO/LOCALFROM arguments to get/put can
> > only refer to local files. The other arguments default to tahoe:, unless
> > otherwise specified.
> 
> I think that's confusing. Consistency is preferable to brevity, IMO.

Hm. What's the alternative? Always require a prefix:, and use local: to mean
local disk? I guess that would look like:

 tahoe mkdir tahoe:SUBDIR
 tahoe ls tahoe:SUBDIR
 tahoe cp local:foo.txt tahoe:
 tahoe cp tahoe:bar.txt local:/tmp/
 tahoe cp work:foo.txt personal:subdir/
 tahoe get tahoe:foo.txt local:foo.txt
 tahoe put local:foo.txt tahoe:foo.txt
 tahoe rm tahoe:foo.txt
 tahoe mv tahoe:foo.txt tahoe:bar.txt
 tahoe ln other: tahoe:link

I'll agree that we need easy-to-remember rules about which namespace is
which, but typing "tahoe:" for things that are always in the vdrive doesn't
feel like it'd be very convenient for day-to-day use. The word "tahoe"
appears three times in "tahoe mv tahoe:foo.txt tahoe:bar.txt".

hmm,
 -Brian


More information about the tahoe-dev mailing list