Commit Graph

578 Commits

Author SHA1 Message Date
Jeromy
267c19ab9d some fixes for latest from go-ipfs-cmds
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-21 11:11:47 -08:00
keks
091eeee243 update go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
1cc7e2a28e update go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
8f24d8e211 cleanup
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
7b1963906b update go-ipfs-cmds yet again
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
b23c3295e6 update go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
94266bf2e4 update go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
fbc36b8962 update dependencies and update TODO
broken sharness test t0110 has been fixed in master

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
23a27b9c67 fix test that didn't respect cmds.Single
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
e8ad094448 add TODO
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
feef5c3415 cmds: use Executors
- some fixes for cmds1.0
- reinsert plugin loading code, pretty print wrapper

TODO:
if plugin loading fails it only calls log.Warning.
returning an error would be better but that would have
to happen after PreRun, which is not possible atm.

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
84101c8a2a go test passes, sharness fails
pass API path to cmds, fix options in add.

License: MIT
Signed-off-by: keks <keks@cryptoscope.com>
2018-01-21 11:11:47 -08:00
keks
bd9576fa57 start adopting cmds3.0 - lots of errors!
- move go-ipfs-cmds/legacy to go-ipfs/commands/legacy
- update cmds,cmdkit; go test ./... ok

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
Steven Allen
973dead066 remove dead code
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-15 10:31:43 -08:00
Steven Allen
dfe7ef4fcf gx: update go-multihash
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
Jeromy
68bb106980 Delete some now unused commands lib code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-21 20:40:24 -08:00
Steven Allen
bcd25416d9 cmds: rename DefaultVal -> Default, Default -> WithDefault
Propagate change from cmdkit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:49 -08:00
Steven Allen
76e1da02a8 gx: massive update
Note: This commit is technically broken. However, I need to make a bunch of
cmds changes to make this work and I'd rather not bundle both changes into a
single commit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:27 -08:00
Whyrusleeping
b01e48a758
Merge pull request #4392 from ipfs/feat/log/uuid
Feat/log/uuid
2017-11-18 10:25:23 -08:00
Jan Winkelmann
f287524949 cmd: use go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:41 +01:00
Forrest Weston
f44cf00342 Add error message to event logs in path resolution
If an error occurs during an event add it to the events metadata

License: MIT
Signed-off-by: Forrest Weston <forrest@protocol.ai>
2017-11-15 12:27:22 -08:00
Forrest Weston
846c04b131 Added uuid loggable (requestId) to root context
Every log event resulting from a command will have a uuid associated with it

License: MIT
Signed-off-by: Forrest Weston <forrest@protocol.ai>
2017-11-14 18:02:15 -08:00
Łukasz Magiera
1a93abcd69 fix 'file already closed' in Go 1.9
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-20 23:23:55 +02:00
Jeromy
cccc6a94a3 update go-multihash and bubble up changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
zramsay
096b3232d5 address PR comments; remove commented/dead code
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-01 12:13:04 -04:00
zramsay
c5df8f0796 apply the megacheck tool to improve code quality
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
Jeromy
b15470d548
bubble up updates from go-multihash changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
keks
8ee7aa5cab commands: restore and test original error order
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2017-04-05 11:57:54 +02:00
Jeromy
4a86b7b6b9 fix hidden file detection on windows
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-24 12:21:43 -07:00
Jeromy Johnson
ff997c1f7a Merge pull request #3824 from ipfs/fix/govet/some-error
fix: multiple govet warnings
2017-03-23 20:56:10 -07:00
Jeromy Johnson
ac69697bd9 Merge pull request #3042 from ipfs/feat/hamt-sharding
Implement unixfs sharding
2017-03-23 20:51:52 -07:00
Jakub Sztandera
6546aeade7
fix: multiple govet warnings
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 01:02:50 +01:00
Jeromy Johnson
2cc5ce45b8 Merge pull request #3777 from ipfs/fix/gateway-status-codes
Return 404 Not Found for failed path resolutions
2017-03-22 22:31:54 -07:00
Jeromy
bb09ffd756 implement an HAMT for unixfs directory sharding
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy Johnson
21072a5f81 Merge pull request #3712 from ipfs/kevina/more-robust-gc
More Robust GC
2017-03-21 17:16:37 -07:00
Giulitti Salvatore
3d21c2ff6e test(commands): fix EOF failure with Multipart.Read
License: MIT
Signed-off-by: hoenirvili <hoenirvili@gmail.com>
2017-03-21 11:20:12 +02:00
Kevin Atkinson
f66ca2ff24 gc: continue to use cmds.ChannelMarshaler
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-18 21:30:32 -04:00
Lars Gierth
807ffb9141 commands/dns: return NotFound error for failed resolutions
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 04:16:36 +01:00
Dominic Della Valle
b29945e791 Windows root parse fix
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2017-03-07 09:10:53 -05:00
Dominic Della Valle
934a073732 Replace OS check
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2017-03-07 09:10:53 -05:00
Jeromy Johnson
cbf8a0cdb4 Merge pull request #3748 from ipfs/deps/update-dht
update go-libp2p-kad-dht with getclosestpeers fix
2017-03-06 11:21:38 -08:00
Jeromy
2884c84343 Implement basic filestore 'no-copy' functionality
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-06 00:37:24 -08:00
Jeromy
4e168dc323 update go-libp2p-kad-dht with getclosestpeers fix
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-05 23:06:04 -08:00
Jeromy
b4eeff2d84 update go-multihash and bubble up deps
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
Jakub Sztandera
591e82618e
commands: fix opt.Description panic when desc was empty
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-20 22:55:47 +01:00
Jeromy Johnson
bbd7ad21ad Merge pull request #3382 from keks/feat/command.run-docs
Add docs for `"commands".Command.Run`
2016-11-14 17:51:47 -08:00
Jan Winkelmann
1a3fa80fdb Add docs for "commands".Command.Run
To clarify that if you want to access the request body after writing need to use
multipart requests.

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-11-14 22:32:41 +01:00
Jan Winkelmann
c6186982e8 revert commit breaking ipfs add for js-ipfs-api
Revert "http api: makes sure header is sent even when r is not ready yet. fixes #3304 (#3305)"
This reverts commit 68d8a298c5.

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-11-07 23:24:05 +01:00
Kevin Atkinson
73f9a90cbf Create a FilestoreNode object to carry PosInfo
When doing a filestore add, we wrap whatever nodes we create in a
FilestoreNode object and add the PosInfo to it so that the filestore
will be able to extract information as needed.

Edited by whyrusleeping

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:30:45 -04:00
keks
68d8a298c5 http api: makes sure header is sent even when r is not ready yet. fixes #3304 (#3305)
* http api: send header even when r is not ready yet. fixes #3304

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>

* http api: check flush error and only flush once per iteration

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>

* http api: f.Flush is not in fact returning anything

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>

* api http: remove pointless Flush

License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-10-18 15:46:07 -07:00