Commit Graph

1789 Commits

Author SHA1 Message Date
Łukasz Magiera
0bfcf7eafa namecache: remove pin for now
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-02-06 02:15:51 +01:00
Łukasz Magiera
7d6de7ec96 namecache: update name follow to new cmd lib
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-02-05 20:29:31 +01:00
vyzo
96648f2713 namecache: post-rebase updates
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2019-02-05 20:28:53 +01:00
vyzo
143ef0dc5b namecache: make followInterval a follow parameter
Also adds --refresh-interval to follow command.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2019-02-05 20:28:53 +01:00
vyzo
ec9b120a9c namecache: rework follow subcommand
- coalesces pin into add --pin
- add and cancel accept multiple names

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2019-02-05 20:28:53 +01:00
vyzo
0bb07b5d64 namecache: make ipnsFollowResult a string
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2019-02-05 20:28:53 +01:00
vyzo
dfc90e84e6 namecache: wtf is just not a good unexpected error response
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2019-02-05 20:28:53 +01:00
vyzo
b8125ad04d namecache: return errors in the Follow/Unfollow interface
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2019-02-05 20:28:53 +01:00
vyzo
ceaa75289f namecache: obey conventional order in commands/follow
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2019-02-05 20:28:53 +01:00
vyzo
2969f795b0 namecache: ipfs name follow
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2019-02-05 20:28:53 +01:00
Steven Allen
803e9a7e66
Merge pull request #5962 from ipfs/feat/coreapi-async-ls
Port `ipfs ls` to CoreAPI
2019-02-02 13:33:29 -08:00
Łukasz Magiera
6939b602dd coreapi: mirror unixfs file types
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-02-02 17:29:22 +01:00
Łukasz Magiera
1fef9a51dd coreapi ls: merge ResolveType and ResolveSize
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-02-02 17:13:28 +01:00
Łukasz Magiera
d1b6ccaae9 coreapi: stream only ls, handle storting in command
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-02-02 03:44:54 +01:00
Łukasz Magiera
73f1e2dbf0 ls: use CoreAPI
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-02-02 00:21:36 +01:00
Dominic Della Valle
8111214223 docs: duplicate default helptext
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2019-02-01 09:14:24 -05:00
Łukasz Magiera
7c2aa0e9a9 gx: update go-unixfs to propagate archive changes
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-30 20:58:32 +01:00
Łukasz Magiera
e71e700cc4 commands/get: move FileArchive here
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-30 17:43:04 +01:00
Łukasz Magiera
aa3e087e77 Use coreapi in ipfs get
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-30 17:43:04 +01:00
Steven Allen
e2ab620f81 cmds/pin: fix pin imports
* Name them. Unfortunately, This makes the *actual* package names clear. I know
  this isn't "idiomatic go" but it's idiomatic go-ipfs.
* Remove the duplicate import.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-29 11:29:53 -08:00
Overbool
7a08cf9cf3 cmds/pin: modify test
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2019-01-29 11:29:48 -08:00
Overbool
99feecfdcc cmds/pin: use coreapi/pin
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2019-01-29 11:29:48 -08:00
chenminjian
4e91469b90 refact(cmd/config): change string option to const
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2019-01-27 14:26:58 +08:00
Steven Allen
3c29855e65 commands: remove extra <<default>> text from help text
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-24 13:36:44 -08:00
Kejie Zhang
ab89503faa clarification the document of --resolve flag in name.publish
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2019-01-24 13:36:44 -08:00
Steven Allen
7c6ec8185a commands: fix verbose flag for the active commands command
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-23 11:25:13 -08:00
Steven Allen
6240f57ed4 commands: fix verbose flag
Options are recorded using their *first* name.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-23 11:23:38 -08:00
Łukasz Magiera
53e55e3314 gx: update go-unixfs to 1.2.14 and go-bitswap to 1.1.21
(and everything else...)

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-23 11:01:38 -08:00
Łukasz Magiera
b2a5168468 Unixfs: enforce refs on files when using nocopy
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-23 05:17:46 -08:00
Łukasz Magiera
85eb8812fa Port dag commansds to CoreAPI
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-22 21:01:19 +01:00
Steven Allen
e9953972ed mfs: make sure to flush after mv and chcid
We need to call `FlushPath` as `Flush` doesn't call `WaitPub` internally. The
correct fix is to rework MFS such that Flush actually flushes but that's a
larger project.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-21 20:01:40 -08:00
Steven Allen
5b6f41a0cf
Merge pull request #5923 from da2x/patch-1
Clarify that chunker sizes are in bytes
2019-01-21 17:57:31 +00:00
Steven Allen
38a3938960
Merge pull request #5931 from chenminjian/refact/cmd/patch
refact(cmd/patch): change string to const
2019-01-21 17:57:11 +00:00
Steven Allen
21ac6c7429
Merge pull request #5932 from chenminjian/refact/cmd/object
refact(cmd/object): change option string to const
2019-01-21 17:56:53 +00:00
Steven Allen
19d8f624ed base32: make GetEncoderFromPath more robust
Primarily, get rid of extractCidString and cidVer. Neither of these functions
did sane things when a path when a path didn't actually include a CID. For
example, "boo" would yield a base32 encoder.

Also:

* Avoid "optional" errors.
* Make it a pure function of the input path.
* Extract the multibase from *any* type of path of the form
  /namespace/cid-like-thing/... This is a DWIM function.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-21 09:46:24 -08:00
chenminjian
d89410d17e refact(cmd/object): change option string to const
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2019-01-19 17:05:02 +08:00
chenminjian
7f80793722 refact(cmd/patch): change string to const
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2019-01-19 16:52:47 +08:00
Kevin Atkinson
f31e6b6191 Change --force-cid-base to --upgrade-cidv0-in-output.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 15:54:43 -05:00
Kevin Atkinson
57457af7d2 Change --output-cidv1 to --force-cid-base.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 15:54:43 -05:00
Kevin Atkinson
8209ba6156 Don't use ParsePath in extractCidString.
ParsePath does not preserve the multibase.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 15:54:43 -05:00
Kevin Atkinson
b22275fb66 Add global --cid-base option and enable it for most commands.
This does it on ther server side for most commands.

This also adds a global --output-cidv1 option.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 15:54:32 -05:00
Kevin Atkinson
5512ad53c4 Gx update go-cidutil.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2019-01-17 14:49:47 -05:00
Łukasz Magiera
3b5c0712f9 ls: dummy value in place of size for dirs
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-17 18:04:16 +00:00
Łukasz Magiera
39c2e0126d ls: skip size for directories
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-17 18:04:16 +00:00
Łukasz Magiera
e63c06c89d ls: report real size by default
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-17 18:04:16 +00:00
Łukasz Magiera
6bb02a59c0 ls: option to report real file size
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-17 18:04:16 +00:00
Daniel Aleksandersen
745f82e0f9 Clarify that chunker sizes are in bytes
Clarify that the Rabin fingerprint chunker is in bytes, and recommend
using larger chunk sizes than shown in the provided examples.

People are getting confused over chunker sizes and incorrectly assuming
they're in kiB and not bytes.

License: MIT
Signed-off-by: Daniel Aleksandersen <code@daniel.priv.no>
2019-01-13 06:13:54 +01:00
Hector Sanjuan
ab270fbaa7 Bubble go-ipfs-cmds 2.0.10
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-01-10 21:31:11 +01:00
Steven Allen
489786a53f files: update for MFS changes
1. Update to use the new `Open` function.
2. Use `Flush()` instead of `Sync()` as sync was removed as useless (this should
have been calling `Flush()` all along).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-08 19:46:37 -08:00
Steven Allen
08cc5da55f gx: update deps
Importantly:

* fixes a bunch of MFS bugs
* pulls in some bitswap improvements

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-08 19:19:34 -08:00