kubo/commands
Juan Batiz-Benet 978c9fa16f cmds/add: use dagutils.Editor, like patch
This changes the pin behavior. It uses the filenames given through
the api, and allows files to be streamed faltly (not a hierarchy),
which is easier for other things (like vinyl in node-ipfs-api land).
Files can also be entirely out of order, and the garbage intermediate
directories will not be pinned (gc-ed later).

The changes also mean the output of add has changed slightly-- it
no longer shows the local path added, but rather the dag path
relative to the added roots. This is a small difference, but changes
tests.

The dagutils.Editor creates a lot of chaff (intermediate objects)
along the way. Wonder how we might minimize the writes to the
datastore...

This commit also removes the "NilRepo()" part of the --only-hash
mode. We need to store at least in an in-mem repo/datastore because
otherwise the dagutils.Editor breaks.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-12 08:24:06 +02:00
..
cli cmds/add: use dagutils.Editor, like patch 2015-08-12 08:24:06 +02:00
files cmds/add: use dagutils.Editor, like patch 2015-08-12 08:24:06 +02:00
http cmds/add: use dagutils.Editor, like patch 2015-08-12 08:24:06 +02:00
argument.go commands: Added Recursive modifier to Argument 2014-11-18 02:13:54 -08:00
channelmarshaler.go commands: Made default JSON marshaler support channel output 2015-01-06 15:53:48 -08:00
command_test.go commands: Refactored Command#Run function signature to (req Request, res Response) 2015-01-23 18:29:29 -08:00
command.go commands/command: Add a package comment 2015-04-30 21:25:55 -07:00
option_test.go tests(commands/option) test the OptionValue methods 2014-11-14 03:19:57 -08:00
option.go add a global timeout flag for to be setting timeouts 2015-07-20 12:53:37 -07:00
request.go remove context from context 2015-07-20 20:53:06 -07:00
response_test.go Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)' 2015-05-26 23:18:04 +07:00
response.go attempt at properly closing http response bodies 2015-07-22 13:31:33 -07:00