chore: export sync cli commands
This commit is contained in:
parent
22329b96b4
commit
89c45fe7ef
@ -79,7 +79,7 @@ var Commands = []*cli.Command{
|
||||
WithCategory("developer", waitApiCmd),
|
||||
WithCategory("developer", fetchParamCmd),
|
||||
WithCategory("network", NetCmd),
|
||||
WithCategory("network", syncCmd),
|
||||
WithCategory("network", SyncCmd),
|
||||
pprofCmd,
|
||||
VersionCmd,
|
||||
}
|
||||
|
26
cli/sync.go
26
cli/sync.go
@ -15,20 +15,20 @@ import (
|
||||
"github.com/filecoin-project/lotus/build"
|
||||
)
|
||||
|
||||
var syncCmd = &cli.Command{
|
||||
var SyncCmd = &cli.Command{
|
||||
Name: "sync",
|
||||
Usage: "Inspect or interact with the chain syncer",
|
||||
Subcommands: []*cli.Command{
|
||||
syncStatusCmd,
|
||||
syncWaitCmd,
|
||||
syncMarkBadCmd,
|
||||
syncUnmarkBadCmd,
|
||||
syncCheckBadCmd,
|
||||
syncCheckpointCmd,
|
||||
SyncStatusCmd,
|
||||
SyncWaitCmd,
|
||||
SyncMarkBadCmd,
|
||||
SyncUnmarkBadCmd,
|
||||
SyncCheckBadCmd,
|
||||
SyncCheckpointCmd,
|
||||
},
|
||||
}
|
||||
|
||||
var syncStatusCmd = &cli.Command{
|
||||
var SyncStatusCmd = &cli.Command{
|
||||
Name: "status",
|
||||
Usage: "check sync status",
|
||||
Action: func(cctx *cli.Context) error {
|
||||
@ -81,7 +81,7 @@ var syncStatusCmd = &cli.Command{
|
||||
},
|
||||
}
|
||||
|
||||
var syncWaitCmd = &cli.Command{
|
||||
var SyncWaitCmd = &cli.Command{
|
||||
Name: "wait",
|
||||
Usage: "Wait for sync to be complete",
|
||||
Flags: []cli.Flag{
|
||||
@ -102,7 +102,7 @@ var syncWaitCmd = &cli.Command{
|
||||
},
|
||||
}
|
||||
|
||||
var syncMarkBadCmd = &cli.Command{
|
||||
var SyncMarkBadCmd = &cli.Command{
|
||||
Name: "mark-bad",
|
||||
Usage: "Mark the given block as bad, will prevent syncing to a chain that contains it",
|
||||
ArgsUsage: "[blockCid]",
|
||||
@ -127,7 +127,7 @@ var syncMarkBadCmd = &cli.Command{
|
||||
},
|
||||
}
|
||||
|
||||
var syncUnmarkBadCmd = &cli.Command{
|
||||
var SyncUnmarkBadCmd = &cli.Command{
|
||||
Name: "unmark-bad",
|
||||
Usage: "Unmark the given block as bad, makes it possible to sync to a chain containing it",
|
||||
Flags: []cli.Flag{
|
||||
@ -162,7 +162,7 @@ var syncUnmarkBadCmd = &cli.Command{
|
||||
},
|
||||
}
|
||||
|
||||
var syncCheckBadCmd = &cli.Command{
|
||||
var SyncCheckBadCmd = &cli.Command{
|
||||
Name: "check-bad",
|
||||
Usage: "check if the given block was marked bad, and for what reason",
|
||||
ArgsUsage: "[blockCid]",
|
||||
@ -198,7 +198,7 @@ var syncCheckBadCmd = &cli.Command{
|
||||
},
|
||||
}
|
||||
|
||||
var syncCheckpointCmd = &cli.Command{
|
||||
var SyncCheckpointCmd = &cli.Command{
|
||||
Name: "checkpoint",
|
||||
Usage: "mark a certain tipset as checkpointed; the node will never fork away from this tipset",
|
||||
ArgsUsage: "[tipsetKey]",
|
||||
|
Loading…
Reference in New Issue
Block a user