Jeromy
2492f0cb38
document the set-data and append-data commands in patch
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-24 12:43:37 -07:00
Jeromy
30d10ce4f4
add-only-hash no longer stores entirety of everything in memory
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-05 04:56:55 +02:00
rht
de5c0ceff0
Localize the scope of context.WithCancel for every DAG.Get
...
Instead put it inside of DAG.Get.
The fix is applied only in the case when the context.WithCancel
before a DAG.Get is also used later on in the scope.
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 22:38:04 +07:00
Jeromy
b32d0ef153
implement 'editor' abstraction
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
7c510662ae
break merkledag utils into its own package
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
194eb7c0dc
more tests and better path handling in object
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
bfe4e4be4f
let rm understand paths
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
870df2431a
allow patch to optionally create intermediate dirs
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
bb3a75aa08
remove context from context
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 20:53:06 -07:00
Juan Batiz-Benet
c9edbf359d
Merge pull request #1403 from dylanPowers/object-new-templates
...
Object new templates
2015-06-26 04:23:26 -07:00
Juan Batiz-Benet
3a1c8d7a53
Merge pull request #1400 from dylanPowers/object-help
...
"object" added to the descriptions of object patch and object data
2015-06-19 23:47:21 -07:00
Jeromy Johnson
7d254aef20
Merge pull request #1404 from ipfs/feat/patch-path
...
allow patch add-link to add at a path
2015-06-19 22:01:57 -07:00
Jeromy
d585e20ebc
allow patch add-link to add at a path
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-19 20:45:20 -07:00
Dylan Powers
1b283a733a
Templates list in help text of object new
...
License: MIT
Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
2015-06-19 17:18:48 -07:00
Dylan Powers
2f6f0f91c8
Examples for object put
...
License: MIT
Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
2015-06-19 17:12:20 -07:00
Dylan Powers
3f22954f7c
"object" added to the descriptions of object patch and object data
...
License: MIT
Signed-off-by: Dylan Powers <dylan.kyle.powers@gmail.com>
2015-06-19 14:14:53 -07:00
Jeromy
b4f55d337a
'key' objects dont marshal to json well
2015-06-08 10:19:26 -07:00
Jeromy
40e423d6dc
implement an ipfs patch command for modifying merkledag objects
...
WIP: object creator command
better docs
move patch command into object namespace
dont ignore cancel funcs
addressing comment from CR
add two new subcommands to object patch and clean up main Run func
cancel contexts in early returns
switch to util.Key
2015-06-03 15:24:07 -07:00
rht
3547f7ae33
Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'
2015-05-26 23:18:04 +07:00
Henry
f640ba0089
core: add context.Context param to core.Resolve()
...
commands/object: remove objectData() and objectLinks() helpers
resolver: added context parameters
sharness: $HASH carried the \r from the http protocol with
sharness: write curl output to individual files
http gw: break PUT handler until PR#1191
2015-05-08 03:14:32 +02:00
Jeromy
861f30cc12
don't readd entire directories recursively
2015-04-20 16:21:00 -07:00
gatesvp
31ff954539
Move IPNS resolutions into the core library
...
Move IPNS resolutions into the core library via the pathresolver.go
file. Fix the CLI commands to leverage this core component.
2015-04-20 01:04:30 -07:00
Ho-Sheng Hsiao
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Henry
b688e72de0
ipfs object put: return error if object is empty ( fixes #883 )
2015-03-10 22:58:50 +01:00
Henry
759437e054
ls: introduce specific output types (removes IsDir from object plumbing commands)
2015-03-10 13:56:57 +01:00
Henry
bc84ffafe3
enable stdin input for ipfs object put
2015-03-07 16:50:00 +01:00
Henry
607468a96d
beautify 'ipfs ls' and 'ipfs object links' (updates #799 )
2015-03-01 14:03:51 +01:00
Jeromy
ff30558195
make it easier to create custom dag objects via the CLI
2015-02-23 21:33:38 -08:00
Jeromy
abb3c9c9c4
implement path type
2015-01-29 17:51:08 +00:00
Matt Bell
7b4de230eb
commands: Refactored Command#Run function signature to (req Request, res Response)
2015-01-23 18:29:29 -08:00
Matt Bell
86bb8ca7a7
core/commands: Enabled stdin for various command arguments
2015-01-13 22:51:11 -08:00
Juan Batiz-Benet
8307572777
ipfs block stat bugfix: cast
2015-01-07 06:26:34 -08:00
Juan Batiz-Benet
6b2795338f
ipfs object has learned stat
...
'ipfs object stat' is a plumbing command to print DAG
node statistics. <key> is a base58 encoded multihash.
It outputs to stdout:
NumLinks int number of links in link table
BlockSize int size of the raw, encoded data
LinksSize int size of the links segment
DataSize int size of the data segment
CumulativeSize int cumulative size of object and references
2015-01-07 02:31:29 -08:00
Matt Bell
6236ef7fdb
core/commands: Made add command output a channel
...
core/commands: Don't use pointers for Type field
2015-01-06 15:55:16 -08:00
Matt Bell
fd40702f73
commands: Changed Marshaler to return a io.Reader instead of a []byte
...
core/commands: Refactored command marshalers
2015-01-06 15:53:42 -08:00
Brian Tiger Chow
65c6bd07bf
feat(core/commands): expose commands to allow for the development of high-level interface
...
+ style: sort command list
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:26 -08:00
Juan Batiz-Benet
5aaa45db9a
transitioned ipfs2 -> ipfs
2014-11-18 06:15:00 -08:00
Juan Batiz-Benet
ad3f3e003f
removed old commands files
...
https://www.youtube.com/watch?v=kyFyAqLtHq8
2014-11-18 06:15:00 -08:00
Brian Tiger Chow
cea398b8a7
fix(all) log.Debug -> log.Debugf
2014-10-30 06:35:29 -07:00
Henry
468494e5e5
break with ErrObjectTooLarge
2014-10-19 17:07:03 +02:00
Henry
bc38bdf512
limit raw input to 512 kilobytes
2014-10-19 16:57:12 +02:00
Henry
2276b55c57
no links, no error
2014-10-19 16:52:45 +02:00
Henry
e735addbb2
object plumbing commands
2014-10-18 04:35:12 +02:00