-
Notifications
You must be signed in to change notification settings - Fork 107
/
debug.go
33 lines (28 loc) · 1.04 KB
/
debug.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Package debug implements various sub-commands useful for debugging.
package debug
import (
"github.com/spf13/cobra"
"github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/debug/beacon"
"github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/debug/bundle"
"github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/debug/byzantine"
"github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/debug/control"
"github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/debug/dumpdb"
"github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/debug/storage"
"github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/debug/txsource"
)
var debugCmd = &cobra.Command{
Use: "debug",
Short: "debug utilities",
Hidden: true,
}
// Register registers the debug sub-command and all of it's children.
func Register(parentCmd *cobra.Command) {
storage.Register(debugCmd)
byzantine.Register(debugCmd)
txsource.Register(debugCmd)
control.Register(debugCmd)
dumpdb.Register(debugCmd)
beacon.Register(debugCmd)
bundle.Register(debugCmd)
parentCmd.AddCommand(debugCmd)
}