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