Registry / cli / ipfs-go-ipfs-cmds

ipfs-go-ipfs-cmds

JSON →
library2.0.1+incompatiblegogounverified

Package cmds helps building both standalone and client-server applications with commands, emitters, and responses.

go get github.com/ipfs/go-ipfs-cmds
INSTALL
IMPORT
SIG · IPFS-GO-IPFS-CMDS
I
ipfs-go-ipfs-cmds
cligov2.0.1+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cmds
✓ github.com/ipfs/go-ipfs-cmds

Define and run a command

package main import ( "github.com/ipfs/go-ipfs-cmds" ) func main() { cmd := &cmds.Command{ Run: func(req *cmds.Request, re cmds.ResponseEmitter, env cmds.Environment) error { return re.Emit("Hello, world!") }, } // Use cmd with a command executor }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
ipfs-go-ipfs-cmds — go get ipfs-go-ipfs-cmds · libregistry