- 10 Aug, 2021 1 commit
-
-
tavit ohanian authored
-
- 20 Jun, 2021 1 commit
-
-
tavit ohanian authored
-
- 25 Feb, 2019 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
Apparently, windows returns "invalid file handle" and golang doesn't translate this to EINVAL. fixes ipfs/go-ipfs#6021
-
- 19 Feb, 2019 2 commits
-
-
Steven Allen authored
We inserted these while transitioning to the new API but we've never hit one.
-
Steven Allen authored
It wasn't a reliable way to determine if the command was "done". We need to wait for run, post-run, etc. to finish first. * Fixes #143 This commit: 1. Removes the exit channel from the CLI response emitter. 2. Adds a `Status()` function to the `cli.ResponseEmitter` as a replacement for (1). 3. Renames `Exit(code)` to `SetStatus(code)`. This new function doesn't immediately _do_ anything other than set the status. 4. Make sure to wait for _everything_ to finish before returning from `cli.Run`.
-
- 07 Dec, 2018 1 commit
-
-
Steven Allen authored
*Don't* say "context canceled". Just say "canceled". fixes https://github.com/ipfs/go-ipfs/issues/3785
-
- 26 Oct, 2018 1 commit
-
-
Steven Allen authored
This time, we completely separate error encoding and let the emitter deal with it. Basically: 1. Some transports won't even use the same channel. 2. We don't *have* an error "encoder" for protobuf. We now *finally* return the correct content type (json) when returning an error after passing `--enc=protobuf`. This *also*: 1. Removes GetDecoder. We need to special case this every time anyways. 2. Allows transports to specify the "default" encoding type instead of assuming JSON. 3. Ensure that we never mistake a value for an error in the HTTP transport by converting to a cmdkit.Error *before* passing errors to `doPreamble`.
-
- 25 Oct, 2018 1 commit
-
-
Steven Allen authored
Only use custom encoders for values. fixes #65 Also, remove SetEncoder. Always derive the correct encoder from the request.
-
- 23 Aug, 2018 11 commits
-
-
keks authored
-
keks authored
-
keks authored
-
keks authored
-
keks authored
-
keks authored
- remove HandleError() because we now have CloseWithError - remove Header interface - remove all Head() methods - fix locking in chan.go - use EmitChan in ResponseEmitters - introduce cmds.ErrClosedEmitter - fix tests (some still expected errors to be emitted/marshaled)
-
keks authored
-
keks authored
-
keks authored
-
keks authored
-
keks authored
-
- 11 Jan, 2018 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
We can add these back if we need them but, at the very least, we shouldn't be unconditionally generating stack traces on `Close`.
-
- 22 Dec, 2017 1 commit
-
-
keks authored
-
- 21 Dec, 2017 1 commit
-
-
keks authored
-
- 23 Oct, 2017 1 commit
-
-
keks authored
-
- 06 Oct, 2017 1 commit
-
-
keks authored
-
- 08 Jun, 2017 1 commit
-
-
keks authored
-
- 26 May, 2017 1 commit
-
-
Jan Winkelmann authored
-
- 25 May, 2017 2 commits
-
-
Jan Winkelmann authored
-
Jan Winkelmann authored
-
- 15 May, 2017 2 commits
-
-
Jan Winkelmann authored
-
Jan Winkelmann authored
-
- 12 May, 2017 2 commits
-
-
Jan Winkelmann authored
-
Jan Winkelmann authored
-
- 08 May, 2017 1 commit
-
-
Jan Winkelmann authored
-
- 26 Apr, 2017 1 commit
-
-
Jan Winkelmann authored
-
- 25 Apr, 2017 1 commit
-
-
Jan Winkelmann authored
-
- 20 Apr, 2017 1 commit
-
-
Jan Winkelmann authored
-
- 19 Apr, 2017 1 commit
-
-
Jan Winkelmann authored
-
- 16 Apr, 2017 1 commit
-
-
Jan Winkelmann authored
-