mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 19:24:14 +08:00
Adds aliases to stats command
License: MIT Signed-off-by: Michael Pfister <pfista@gmail.com>
This commit is contained in:
@ -10,6 +10,8 @@ import (
|
||||
humanize "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/dustin/go-humanize"
|
||||
|
||||
cmds "github.com/ipfs/go-ipfs/commands"
|
||||
filescmds "github.com/ipfs/go-ipfs/core/commands/files"
|
||||
objcmds "github.com/ipfs/go-ipfs/core/commands/object"
|
||||
peer "gx/ipfs/QmQGwpJy9P4yXZySmqkZEXCmbBpJUb8xntCv8Ca4taZwDC/go-libp2p-peer"
|
||||
metrics "gx/ipfs/QmQgQeBQxQmJdeUSaDagc8cr2ompDwGn13Cybjdtzfuaki/go-libp2p/p2p/metrics"
|
||||
protocol "gx/ipfs/QmQgQeBQxQmJdeUSaDagc8cr2ompDwGn13Cybjdtzfuaki/go-libp2p/p2p/protocol"
|
||||
@ -28,7 +30,12 @@ for your ipfs node.`,
|
||||
},
|
||||
|
||||
Subcommands: map[string]*cmds.Command{
|
||||
"bw": statBwCmd,
|
||||
"bw": statBwCmd,
|
||||
"repo": repoStatCmd,
|
||||
"bitswap": bitswapStatCmd,
|
||||
"block": blockStatCmd,
|
||||
"files": filescmds.FilesStatCmd,
|
||||
"object": objcmds.ObjectStatCmd,
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user