1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-21 00:47:22 +08:00

110 Commits

Author SHA1 Message Date
45fd7d213f pre-populate required arguments from request body
This way, we can always assume that indexing a required argument works.

Also:

* test that the command tree doesn't have any obvious bugs (duplicate options,
  arguments in the wrong order, etc).
* simplify the usage ParseBodyArgs.
* remove unnecessary check in the get command.

fixes #4823

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-18 13:04:25 -07:00
958483f6bc Merge pull request #4822 from ipfs/fix/emit-once
fix: use EmitOnce where only single response is to be sent
2018-03-17 11:35:17 -07:00
116269a12b upgrade commands that used StringArguments
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-16 20:06:54 -07:00
59178057a2 fix: use EmitOnce where only single response is to be sent
Part of #4818

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-16 10:17:34 +01:00
e2bad6ec5e make files stat --with-local return immediately when no data is present
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-21 18:41:40 +01:00
2c68c15407 update go-ipfs-cmds
* May fix #4670
* Fixes #4683

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-20 16:43:00 -08:00
93d1a695d4 Feat: Separate "path" from "path/resolver"
Currently the "path" module does two very different things:

* Defines how ipfs paths look like and provides tools to parse/split etc.
* Provides a resolver to resolve paths.

This moves the resolver stuff to `path/resolver` and leaves the
path utilities in `path`.

The result is that now the IPFS `path` package just defines what a path
looks like and becomes a module that can be exported/re-used without problems.
Currently there are circular dependency cycles (resolve_test -> merkledag/utils,
merkledag->path), which the prevent the export of merkledag itself.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-16 00:20:30 +01:00
30d4eaa067 address code review
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:58:09 +01:00
189c905f40 fix linting
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:52:49 +01:00
eeb15db140 Move files.go out of its own directory.
It is a single file so putting it in its own package is a bit of an
overkill.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-02-04 01:52:49 +01:00