Commit Graph

1931 Commits

Author SHA1 Message Date
Hector Sanjuan
10194de133 core/commands/files: log.Error -> flog.Error
This seems like a tiny leftover.
2020-02-07 14:55:16 +01:00
Hector Sanjuan
da584b8679 Fix #6878: Improve MFS Cli documentation 2020-02-07 14:55:01 +01:00
Steven Allen
26c5e38571 fix: use the correct protocol name for ipfs swarm addrs local --id 2020-02-05 07:46:37 -08:00
Steven Allen
3b5a6bda59 fix: fix id addr format
Instead of manually creating multiaddr strings, use the multiaddr logic to
format them. We were still using `/ipfs` multiaddrs instead of `/p2p` multiaddrs.
2020-02-05 07:39:08 -08:00
@RubenKelevra
4bdd03d2f3
Help text update for 'ipfs key gen'
Add info about the default key type
2020-02-04 13:58:05 +01:00
Steven Allen
33861b0d40 fix: make rsa the default key type
It's already the default when initializing the node, we might as well make it
the default when creating new keys.

fixes #6861
2020-02-03 18:10:21 -08:00
Steven Allen
a53d48059b fix: migrate from deprecated warning function 2020-01-28 21:20:21 -08:00
Steven Allen
e58a32ab1e feat(commands/cid): add a flag for setting the codec
This will be useful when testing `refs local, `repo gc`, and `repo verify`
commands once we store blocks by multihash instead of by CID. At that point,
these commands will return raw v1 CIDs as the blockstore won't actually remember
the codec used to store the block.

Flags choice:

* Ideally, we'd use the `-f, --format` flags like every other command but we're
  already using `-f` (format) for the format string.
* Alternatively, I'd like to use `-c`. However, we're using _that_ for a global
  `--config` flag (bit of a waste given that it doesn't work...).

`--codec` will have to do for now.
2020-01-07 19:32:16 -06:00
Steven Allen
f8adc3ebdd fix(commands/cid): always use base58 for CIDv0 unless otherwise specified 2020-01-07 19:20:21 -06:00
flowed
07cbba7c40 Fix Typos 2019-12-25 03:12:41 +00:00
Steven Allen
8f3b274080 fix: move away from deprecated peer ID functions 2019-12-14 19:48:31 +01:00
Steven Allen
15c35a5a95 doc: update documentation for /ipfs -> /p2p multiaddr switch
See: https://github.com/libp2p/libp2p/issues/79
2019-12-14 19:39:59 +01:00
Michael Muré
c3692a5913 extract the pinner to go-ipfs-pinner and dagutils into go-merkledag 2019-12-02 15:45:44 -05:00
Adin Schmahmann
0906d7f3b1 fix (pinning): pin ls traverses all indirect pins. pin ls pin type precedence change - a direct/recursive pin is now labeled as such even if also indirectly pinned. 2019-12-02 13:53:14 -05:00
Oli Evans
7fcf40eeee
fix: use if over switch
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-11-25 14:51:30 +00:00
Oli Evans
25694d0238
fix: ignore nonexistant when force rm
- Make `ipfs files rm --force /nonexistant` succeed when the path does not exist.
- Add shaness test for removing nonexistant paths
- Refactor duplicated code to find a parent dir into a function

I've been writing scripts against the files api, and having to stat things before removing them is a pain. So this PR aims to make --force do what I'd expect it to.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-11-25 11:38:29 +00:00
Steven Allen
b8ec598d58
Merge pull request #6750 from ipfs/fix/6749
improve documentation and fix dht put bug
2019-11-19 09:14:41 -06:00
Steven Allen
7c01c2cff9
Merge pull request #6769 from Jorropo/feat/repo-stat-H
Adding alias for `ipfs repo stat`.
2019-11-18 14:18:00 -06:00
Michael Muré
097b684b42
pin: add context and error return to most of the Pinner functions 2019-11-18 18:32:48 +01:00
Jorropo
2d7fae78cc Adding alias for ipfs repo stat.
This add -H (-h is obviously taken by the help) for human and -s for size only (I though of -so but multiple letters is automaticaly -- not -).
2019-11-18 00:54:42 +01:00
Steven Allen
32e891b788 fix(commands/dht): pass values as files instead of arguments
Stdin can't have newlines, command-line arguments can't include null characters,
DHT values can include both.

This is a breaking change but this API has never worked anyways.

fixes #5112
2019-11-05 17:54:13 +00:00
Steven Allen
4574a8f2c2 fix(commands/dht): document value limitations
fixes #6749
2019-11-05 17:50:19 +00:00
Jakub Sztandera
01b357a98a
Merge pull request #6701 from ipfs/feat/buzhash
Introduce buzhash chunker
2019-10-08 01:45:17 +02:00
Steven Allen
14a095258c
Merge pull request #6685 from aschmahmann/fix/6527
Pinning interop: Pin ls returns appropriate zero value
2019-10-08 08:43:08 +09:00
Jakub Sztandera
76d2ad404d
Add buzhash to ipfs add docs
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-07 19:57:43 +02:00
Adin Schmahmann
69bb57895a Pin LS command emits custom JSON to handle streaming case 2019-10-07 10:43:52 -04:00
Adin Schmahmann
f1cd629e2b pin ls returns the appropriate zero value if no pins are found. 2019-09-27 18:42:29 -04:00
Steven Allen
853ed0be5d chore: fix deprecation warnings 2019-09-26 15:38:12 -07:00
Steven Allen
c9f3d4b9ab cmds(help): fix swarm filter add/rm help text
These _are_ added/removed from the config.

fixes #4605
2019-09-20 15:02:11 -07:00
Steven Allen
f6f8d68574 version: don't print 'VERSION-' if no commit is specified
fixes #6022
2019-08-28 00:06:46 -07:00
Steven Allen
4f6069f218 cmds/refs: fix ipfs refs for sharded directories
fixes #6596
2019-08-21 18:25:46 -07:00
Steven Allen
641d9f6b09
Merge pull request #6539 from ipfs/fix/writable-gateway
fix and improve the writable gateway
2019-07-26 19:03:37 -07:00
Steven Allen
c312cfff27 feat: add install instructions for external commands
Issue reported on IRC.
2019-07-26 12:37:33 -07:00
Steven Allen
2c222741d1 fix: update for merkledag API changes 2019-07-25 19:26:06 -07:00
Steven Allen
41f301a3fd fix: parallel walk in gc & pin ls 2019-07-22 16:43:58 -07:00
Alan Shaw
76f29603a8 feat: add --long as alias for -l in files.ls
Allow passing --long or ?long=true as a more descriptive option name than "l".

refs: https://github.com/ipfs/go-ipfs#issuecomment-392477565
2019-07-17 15:17:57 +01:00
Steven Allen
9738d81c0c switch to new merkledag walk functions
EnumerateChildrenAsync has been renamed to WalkParallel to reflect the fact
that:

1. It visits the root.
2. It's parallel, not async.

To mirror this change, EnumerateChildren has also been renamed to Walk and now
behaves the same (except that it's not parallel).
2019-07-16 16:34:21 -07:00
Łukasz Magiera
3f7927f1d8 Update imports to go-filestore 2019-07-15 15:52:34 +02:00
Steven Allen
dc56b52734
Merge pull request #6501 from ipfs/docs/pin/update
Improve pin/update description
2019-07-12 08:11:37 -07:00
Steven Allen
20e64aeb34
Merge pull request #6493 from MichaelMure/streamed-pin-ls
pin cmd: stream recursive pins
2019-07-12 07:55:23 -07:00
Hector Sanjuan
146d9d2ac5 Improve pin/update description
I was unable to actually understand what pin update does from the existing
description.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2019-07-12 13:03:27 +02:00
Michael Muré
16b4d74d3b
pin cmd: fix incorect pin type for indirect pins 2019-07-11 18:19:19 +02:00
Michael Muré
9b21269e03
pin cmd: output the recursive pins first for performance 2019-07-11 14:33:34 +02:00
Michael Muré
4ec37b6f7b
pin cmd: document pin ls output types 2019-07-11 14:05:05 +02:00
Michael Muré
58ea970135
pin cmd: better struct naming 2019-07-11 13:59:09 +02:00
Michael Muré
dd06956d30
pin cmd: proper CID encoding and backward compat 2019-07-11 13:51:54 +02:00
Michael Muré
bb60184526 pin cmd: stream recursive pins
Add a --stream flag to stream the results instead of
accumulating the final result in memory.

This is a rework of https://github.com/ipfs/go-ipfs/pull/5005
2019-07-10 19:04:00 +02:00
Steven Allen
288a83ce7d feat: deprecate ipfs repo fsck command
This command is no longer necessary and is quite dangerous:

1. All lockfiles are now released by the OS when the daemon stops.
2. The API file is ignored when (a) the repo is initialized and (b) daemon is
off.

fixes #6435
2019-07-03 12:53:15 -07:00
Dirk McCormick
4b6175f75c fix: block put helptext 2019-06-12 12:44:01 -04:00
Dirk McCormick
bc02a61e7c fix: flush pin on block put 2019-06-12 10:31:39 -04:00