Commit Graph

2557 Commits

Author SHA1 Message Date
Kevin Atkinson
599bb7302e Right align numbers in "ipfs cid bases|codecs|hashes" output.
This also avoid using TabWriter as it doesn't support right aligning a
single column and also because its an overkill for this case.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:20 -04:00
Kevin Atkinson
e5622f628a Stream results for "ipfs cid format".
Note reading input from Stdin is broken.  Only the first result is accepted.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:02 -04:00
Kevin Atkinson
98e5999761 Factor out boiler plate code for PostRun in "ipfs filestore ls".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:47 -04:00
Kevin Atkinson
30b861bc5a Remove "prefix" format string. Use WithDefault("%s') for `-f- option.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:29 -04:00
Kevin Atkinson
57f96019f7 Provide new "cid" sub-command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:27 -04:00
Steven Allen
86559e9e04
Merge pull request #5527 from ipfs/feat/pprof-lock
pprof: create HTTP endpoint for setting MutexProfileFraction
2018-09-27 18:49:46 +00:00
Jakub Sztandera
50fffa2973 pprof: create HTTP endpoint for setting MutexProfileFraction
Allows to dynamically change the MutexProfileFraction to enable and
disable mutex profiling. It should be very useful for detecting
deadlocks, lock contention and general concurrency problems.

How to use:
To enable run: curl -X POST -v 'localhost:5001/debug/pprof-mutex/?fraction=10
To disable: curl -X POST -v 'localhost:5001/debug/pprof-mutex/?fraction=0'

Fraction defines which fraction of events will be profiled. Higher it is
the lower performance impact but less reliable the result.

To fetch the result use:
go tool pprof $PATH_TO_IPFS_BIN http://localhost:5001/debug/pprof/mutex

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-09-26 21:24:49 +02:00
Overbool
5d173bf365 fix(unixfs): issue #5055
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-26 18:51:00 +08:00
Steven Allen
dac058f8be gx: update go-log go-ipld-cbor
(and friends)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:36:29 -07:00
Steven Allen
074a1ab48e update for interface changes
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:24:30 -07:00
Łukasz Magiera
91833e288f gx: update go-libp2p-routing
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-24 14:03:57 +02:00
Steven Allen
ac53d3aaa4
Merge pull request #5494 from rob-deutsch/feat/publishquieter
add quieter option to name publish
2018-09-24 10:11:18 +00:00
rob-deutsch
286d935036 add quieter option to name publish
Added a quieter/Q option to 'name publish' that, consistent with 'add', only outputs the value that was published.

License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-22 09:49:40 +10:00
Overbool
48c3effac8 fix(unixfs): issue #5217
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-21 15:44:38 +08:00
Steven Allen
d556ee23ef fix resolve command for the new cmds refactor
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-19 14:43:15 -07:00
Steven Allen
b7484c1bca gx: update go-ipfs-cmds to the final release
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-19 14:36:08 -07:00
keks
aa7494b0b7 repo gc: use cmds2
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
caf855b4ec fixes
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
74ec1a9aef address stebalien's comments
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
f4b32e36f4 update cmds to 2.0.0-rc1
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
d14021da98 remove debug output
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
ef21c3bfab update go-ipfs-cmds to 2.0.0-beta2
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
keks
908ffddc1b big squash commit
excerpt of commit messages:
- update postrun functions in core/commands
- sharness: allow setting -i with TEST_IMMEDIATE=1
- cmds Run func returns error now
- gx update cmdkit to 1.1.2 and cmds to 2.0.0-beta1

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
Steven Allen
370bd22372
Merge pull request #5484 from ipfs/fix/resolve-hamt
resolve: use unixfs ResolveOnce
2018-09-19 18:41:44 +00:00
Steven Allen
23b44ba3c7
Merge pull request #5485 from schomatis/fix/commands/files-cp-wrap-flush-error
files cp: wrap flush error
2018-09-19 18:39:19 +00:00
Steven Allen
ce8eb134b5
Merge pull request #5466 from ipfs/fix/less-noisy-boostrap-warning
make warnings on no bootstrap peers less noisy
2018-09-19 18:37:41 +00:00
Łukasz Magiera
0fd87de1a4 coreapi name: accept namesys options
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-19 11:51:42 +02:00
Steven Allen
b5bba2ce80
Merge pull request #5486 from kjzz/fix/id
fix offline id bug
2018-09-19 03:01:02 +00:00
Steven Allen
e633eccee4
Merge pull request #5477 from kjzz/fix/publish
error when publishing ipns records without a running daemon
2018-09-19 02:19:31 +00:00
Steven Allen
5676eb530b cmds: improve help/errors for allow-offline
Better explain what's happening and why.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-18 17:27:05 -07:00
Kejie Zhang
53d1251f74 fix offline id bug
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-18 17:57:59 +08:00
Kejie Zhang
9a53494440 update test about publish offline mode
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-18 14:04:56 +08:00
Łukasz Magiera
f915730e68 resolve cmd: use coreapi
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-18 05:05:28 +02:00
Łukasz Magiera
1e31aba77b resolve cmd: port to new cmd lib
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-18 02:17:30 +02:00
Lucas Molas
7994689516 files cp: wrap flush error
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-09-17 21:14:42 -03:00
Łukasz Magiera
ec96a21db3 resolve: use unixfs ResolveOnce
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-18 01:08:04 +02:00
Łukasz Magiera
53575ddef3 coreapi name: Increase test swarm size
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-17 16:35:39 +02:00
Kejie Zhang
264a9fee64 add allow-offline to judge publish in offline mode
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-17 16:10:18 +08:00
Kejie Zhang
e71ca7c5ad refactor ipns command option name
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-17 15:09:55 +08:00
Steven Allen
224bc0d97f make warnings on no bootstrap peers less noisy
We only need to warn the user if we *can't* connect to the network.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-14 12:10:05 -07:00
Overbool
cbe86a91b4 fix(object): print object diff error
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-14 23:08:22 +08:00
rob-deutsch
b06a0b0e32 fix behaviour of key rename to same name
Renaming a key to the same name always succeeds regardless of force flag. Fixed bug whereby renaming to same name (with --force) would delete the key by accident

fixed #5450

License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-14 15:02:47 +10:00
Steven Allen
cbc6e69ed2
Merge pull request #5457 from overbool/feat/command/add-connection-direction
feat(command): add connection direction
2018-09-14 02:22:16 +00:00
Overbool
daf6fbd347 feat(command): add direction flag for swarm peers command
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-14 08:49:07 +08:00
Steven Allen
2de616300b
Merge pull request #4929 from ipfs/misc/cleanup-p2p
Refactor `ipfs p2p`
2018-09-13 23:57:43 +00:00
Steven Allen
72133283fb
Merge pull request #5399 from kjzz/zkj/feat
add --name new flag when ipfs adding from stdin
2018-09-13 21:44:41 +00:00
Steven Allen
17635c8ee8
Merge pull request #5451 from ipfs/doc/cors
api: fix outdated HTTPHeaders config documentation
2018-09-13 21:34:15 +00:00
Steven Allen
cb589a3446
Merge pull request #5459 from ipfs/fix/5458
fix output of object command
2018-09-13 21:13:27 +00:00
Lars Gierth
9b374c0041 api: fix outdated HTTPHeaders config documentation
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-09-13 23:00:01 +02:00
Steven Allen
93a7b7f756 don't append tabs to object links output
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-13 11:10:29 -07:00