Steven Allen
7824c2cf4e
check arguments after handling help
...
otherwise, we block on required arguments from stdin before processing the help
flag.
fixes #4837
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 15:58:34 -07:00
Steven Allen
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
Whyrusleeping
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
Jeromy
116269a12b
upgrade commands that used StringArguments
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-16 20:06:54 -07:00
Jakub Sztandera
ead64854e6
cmd/pubsub: fix pubsub peers format brakage
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-17 02:48:27 +01:00
Jakub Sztandera
42d1aa5bf7
cmd/pubsub: fix pubsub ls emiting plain strings instead of JSON
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-16 14:01:37 +01:00
Jakub Sztandera
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
Whyrusleeping
13887ff2c7
Merge pull request #4751 from ipfs/feat/safe-cid
...
Disallow usage of unsafe hashes for reading and adding content
2018-03-05 12:25:26 -08:00
Jeromy
dd40a5a2d5
fix pubsub pub reading stdin args
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-05 11:45:11 -08:00
Whyrusleeping
bea666f3cd
Merge pull request #4725 from MichaelMure/filesstatlocal
...
make files stat --with-local return immediately when no data is present
2018-03-05 09:39:34 -08:00
Jakub Sztandera
51bf1b6cd4
Significanly improve GC UX with verifcid
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:43:42 +01:00
Jakub Sztandera
a9417a144c
fix ipfs pin verify --verbose not working
...
Resolves https://github.com/ipfs/go-ipfs/issues/4761
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
bcedd38c9a
//hash -> // hash
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
578cb240d4
Move the temporary packages to thirdparty
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
c30422d790
Enforce Cid security rules for getting and adding blocks
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
RideWindX
fbc495db4c
Fix "PNetFingerpint" field typo of core.IpfsNode
...
License: MIT
Signed-off-by: Jason Chang <ridewindx@163.com>
2018-03-01 22:17:10 +01:00
Michael Muré
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
Steven Allen
45756b6d64
fix a bunch of go vet errors
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-20 17:37:35 -08:00
Steven Allen
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
Whyrusleeping
2ee4543c3e
Merge pull request #4713 from ipfs/feat/split-path-resolver
...
Feat: Separate "path" from "path/resolver"
2018-02-20 09:55:36 -08:00
Jeromy
d01bb650b3
dont use bitswap session for cat just yet
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-02-15 16:44:18 -08:00
Hector Sanjuan
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
Hector Sanjuan
758e00bc4c
Extract blocks/blockstore package to go-ipfs-blockstore
...
This extracts the blocks/blockstore package and renames the
blocks/blockstore/util package to /blocks/blockstoreutil
(because util depends on Pin and I don't plan to extract
Pin and its depedencies).
The history of blocks/blockstore has been preserved. It has
been gx'ed and imported. Imports have been rewritten accordingly
and re-ordered.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-15 18:03:41 +01:00
Whyrusleeping
28acec2adb
Merge pull request #4703 from ipfs/extract/routing
...
Extract: routing package to github.com/ipfs/go-ipfs-routing
2018-02-14 12:33:22 -08:00
Whyrusleeping
10b96a39de
Merge pull request #4557 from elopio/patch-1
...
update link to filestore experimental status
2018-02-14 12:31:53 -08:00
Hector Sanjuan
54d87b4ce0
Extract: routing package to github.com/ipfs/go-ipfs-routing
...
This extracts the routing package to its own repository
(https://github.com/ipfs/go-ipfs-routing ). History has
been preserved. The new module has been gx'ed and published.
Imports have been rewritten and re-ordered accordingly.
An internal dependency to go-ipfs/repo has been removed
by substituting it with the go-datastore.Batching interface.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-14 18:33:52 +01:00
Hector Sanjuan
d7cd059165
Doc: golint: remove stuttering in pin package
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-13 13:00:48 +01:00
Whyrusleeping
25eeb1e250
Merge pull request #4638 from MichaelMure/statlocal
...
add a --with-local option to ipfs files stat
2018-02-08 14:21:16 -08:00
Hector Sanjuan
381977476f
Extract: chunker: rename "chunk" to "chunker" as it is more consistent
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:49:39 +01:00
Hector Sanjuan
76d228cf75
Extract chunker: Use last gx'ed go-ipfs-chunker
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:43:29 +01:00
Hector Sanjuan
1811425aab
go-ipfs-chunker: Use the stable gx'ed release
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:34:51 +01:00
Hector Sanjuan
c613fbec38
WIP: Extract: importers/chunk module as go-ipfs-chunker
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:34:15 +01:00
Dirk McCormick
5e8c9481ee
namesys: verify signature in ipns validator
...
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-02-07 16:18:12 -05:00
Hector Sanjuan
bb061d615c
Extract posinfo package to github.com/ipfs/go-ipfs-posinfo
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-07 13:39:53 +01:00
Łukasz Magiera
242c98f44f
coreapi: update after rebase
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 15:29:50 +01:00
Łukasz Magiera
5ea9a3cde2
coreapi: pin tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 15:29:50 +01:00
Łukasz Magiera
c8cfed5c84
coreapi: implement pin api
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 15:29:50 +01:00
Łukasz Magiera
064c194b4f
coreapi: pin draft
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 15:29:50 +01:00
Michael Muré
30d4eaa067
address code review
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:58:09 +01:00
Michael Muré
189c905f40
fix linting
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:52:49 +01:00
Kevin Atkinson
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
Michael Muré
cac995e704
cleaning
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:52:49 +01:00
Michael Muré
69b8383e1c
add a --with-local option to ipfs files stat
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Michael Muré
d716a93fae
ipfs files stat: use go-ipfs-cmds
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Michael Muré
53c42fc4d3
ipfs files: use go-ipfs-cmds
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Łukasz Magiera
04e43b855b
make repo gc call CollectGarbage on datastore
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 01:16:06 +01:00
Whyrusleeping
d58da74746
Merge pull request #4548 from ipfs/feat/coreapi/block
...
coreapi: Block API
2018-02-03 15:38:11 -08:00
Whyrusleeping
d1a3fccd34
Merge pull request #4637 from ipfs/gx/update-go-log
...
gx: update go-log
2018-02-03 15:30:42 -08:00
Whyrusleeping
8e6519bd5a
Merge pull request #4640 from ipfs/doc/godoc-importer
...
Docs: golint-ify "importers" module
2018-02-03 15:30:27 -08:00
Łukasz Magiera
e77b938161
coreapi: update block after update
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-02 22:57:54 +01:00