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
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
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
Lars Gierth
bee272a05e
Fix mulitaddr typo
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-02-10 03:49:37 +01:00
Łukasz Magiera
ffcdb4eec9
fix type error in ulimit_test.go on FreeBSD
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-05 21:07:20 +01:00
Łukasz Magiera
d399cdfec9
disable some tests on windows
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 01:10:43 +01:00
Steven Allen
b2cbfd299c
gx: update go-log
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-31 21:54:22 -08:00
Steven Allen
5acbecc26b
update go-lib2p-loggables
...
fixes a UUID bug I introduced (UUIDs were always an error value)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-27 18:05:30 -08:00
Steven Allen
fe8846fcd7
gx: mass update
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 15:58:44 -08:00
Steven Allen
61b1d2f258
remove todo
...
I've looked into this and I agree, Online was always false (and should be in
this case, anyways).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 19:59:21 -08:00
Jeromy
176d15656d
update go-ipfs-cmds, fix context closing issue
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-21 11:11:47 -08:00
Steven Allen
0bdc2574ce
update go-ipfs-cmds
...
Fix a nil pointer exception when no timeout is set and an HTTP request fails.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Steven Allen
0e680716bd
put immediate error second
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Jeromy
bf804cca66
update to final cmds1.0
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-21 11:11:47 -08:00
Jeromy
267c19ab9d
some fixes for latest from go-ipfs-cmds
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-21 11:11:47 -08:00
keks
d93c0b6a4b
Revert "use *oldcmds.Context consistently instead of non-ptr"
...
This reverts commit 852adb1c4a42a254286ac26b3bae7ea3a7bb69df.
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
c2ffb8e73b
make executable name in command output stable
...
by setting os.Args[0] to "ipfs"
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
aec44bc430
use *oldcmds.Context consistently instead of non-ptr
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
091eeee243
update go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
1cc7e2a28e
update go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
8f24d8e211
cleanup
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
7b1963906b
update go-ipfs-cmds yet again
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
b23c3295e6
update go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
94266bf2e4
update go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
27b43612b6
fix refs handling on gateway
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
52bc298230
fix ServerNameOption
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
fbc36b8962
update dependencies and update TODO
...
broken sharness test t0110 has been fixed in master
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
740cf4a3b4
cmd/ipfs: check whether repo is accessible before attempting to load plugins
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
e8ad094448
add TODO
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
feef5c3415
cmds: use Executors
...
- some fixes for cmds1.0
- reinsert plugin loading code, pretty print wrapper
TODO:
if plugin loading fails it only calls log.Warning.
returning an error would be better but that would have
to happen after PreRun, which is not possible atm.
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
84101c8a2a
go test passes, sharness fails
...
pass API path to cmds, fix options in add.
License: MIT
Signed-off-by: keks <keks@cryptoscope.com>
2018-01-21 11:11:47 -08:00
keks
9965861b86
fmt
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
c1d6230bc0
check api version in corehttp
...
- add comments, trim api path prefix
- corehttp: add option to set HTTP header "Server"
- daemon: use new corehttp options
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
bd9576fa57
start adopting cmds3.0 - lots of errors!
...
- move go-ipfs-cmds/legacy to go-ipfs/commands/legacy
- update cmds,cmdkit; go test ./... ok
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
Scott Bigelow
bc3a7619ae
fix bug with spaces in directory name
...
License: MIT
Signed-off-by: Scott Bigelow <epheph@gmail.com>
2018-01-05 10:38:46 -08:00
Scott Bigelow
55d224a81b
Changing command substitution format
...
License: MIT
Signed-off-by: Scott Bigelow <epheph@gmail.com>
2018-01-04 16:50:06 -08:00
Scott Bigelow
a2eb40c423
Allow install.sh to be run without being the script dir
...
License: MIT
Signed-off-by: Scott Bigelow <epheph@gmail.com>
2018-01-04 15:35:18 -08:00
Whyrusleeping
f4fd369d86
Merge pull request #4195 from ipfs/feat/config-patch
...
config: command to apply profile after init
2018-01-02 14:02:31 -08:00
Péter Szilágyi
cb866bc450
cmd, core: fix Permament -> Permanent typo
...
License: MIT
Signed-off-by: Péter Szilágyi <peterke@gmail.com>
2017-12-28 10:37:26 +02:00
Łukasz Magiera
ac26cf19cd
config-patch: Inverse profiles
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-17 15:29:18 +01:00
Steven Allen
ddcf5ad9c1
make: don't use the private modifier
...
1. We don't need it (technically).
2. TravisCI (well, Ubuntu Trusty) is using a 11 year old version of make without
support for this feature.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-15 16:17:43 -08:00
Steven Allen
f3ad2c95bd
run os builds as a part of the test_go_* targets
...
We were doing this as part of the `test` target but we don't run that on CI (or
at least not on Travis).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-15 16:17:43 -08:00
Łukasz Magiera
b59354bf6a
config: revert profile subcommand
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Steven Allen
dfe7ef4fcf
gx: update go-multihash
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
Whyrusleeping
715bd16e0e
Merge pull request #3801 from hoenirvili/refactor-code
...
Safe check rlimit syscall and refactoring
2017-12-05 18:34:51 +01:00
hoenirvili
f16ada6159
This patch contains more safe checking in syscall rlimit and unit tests
...
The soft limit is the value that the kernel enforces for the corresponding resource
The hard limit acts as a ceiling for the soft limit
an unprivileged process may only set its soft limit to a value
in the range from 0 up to the hard limit.
So in order to make the change in fds count without any error we should
inform the user to make the process have CAP_SYS_RESOURCE capability
in order to set the hard limit.
License: MIT
Signed-off-by: hoenirvili <hoenirvili@gmail.com>
2017-12-04 17:27:00 -05:00
Whyrusleeping
e8cad12465
Merge pull request #4445 from ipfs/fix/4427
...
build for all supported platforms when testing
2017-12-04 20:12:55 +01:00
Steven Allen
924b2a0a34
don't add nodes to DAG twice.
...
Now that we add nodes to the DAG when pinning, don't bother adding them twice.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:02:09 -08:00
Steven Allen
6917d2f08f
build for all supported platforms when testing
...
fixes #4427
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-30 22:05:06 -08:00