go-ipfs-cmds
go-ipfs-cmds copied to clipboard
IPFS commands package
Add an option to save command output to a file instead of the `stdout` argument (which was always set to stdout by `go-ipfs` consumer). We have removed the option and...
For https://github.com/ipfs/go-ipfs/issues/8059#issuecomment-1122437673.
Following the approach described in #115, define a new method signature on `Command` that supports full processing of the `Response` object when text encoding is requested. Add an encoding check...
https://github.com/ipfs/go-ipfs-cmds/blob/87b5c50105f87fafa651000c4955571b132948b2/command.go#L94-L98 At the moment these configurations apply on a per-command basis. For some specific cases of `go-ipfs` commands it might be valuable to configure them on a per-run basis depending...
## Problem https://github.com/ipfs/go-ipfs/pull/8183 introduced a breaking change where pubsub topic name is expected to be a multibase string, but the type of the field remains to be `string`. [ipfs-docs/http-api-docs](https://github.com/ipfs/ipfs-docs/tree/main/tools/http-api-docs) reads...
When writing CLI output, we often want to write to stdout/stderr, sometimes even controlling terminal output. For commands that *just* need to format to stdout, we can use a text...
We need to test sync on macos, linux, and windows when piping, writing to a file, writing to a terminal, writing to /dev/null, closing stdout/stderr.
A number of flag types are supported: https://github.com/ipfs/go-ipfs-cmds/blob/4ade007405e5d3befb14184290576c63cc43a6a3/option.go#L178-L198 This mostly mirrors what https://pkg.go.dev/flag supports, with one notable exception: `flag.Value` via https://pkg.go.dev/flag#Var. This is very useful for custom types which know...
Bumps [github.com/ipfs/go-log](https://github.com/ipfs/go-log) from 1.0.4 to 1.0.5. Release notes Sourced from github.com/ipfs/go-log's releases. Release v1.0.5 Update go-log v2 dep to v2.1.3. Commits c39ee80 Merge pull request #108 from ipfs/chore/update-maint-deps f58978d ci:...
Bumps [github.com/rs/cors](https://github.com/rs/cors) from 1.7.0 to 1.8.0. Commits 64821dd public method to check cors domain (#115) f9bce55 Updating renamed pressly import to go-chi (#112) 8b4a00b Fix[RFC_7230] RFC-7230 compliance (#103) be1c7e1 Update...