Merge pull request #2019 from chunqizhi/zcq
Add usage information for provingInfoCmd
This commit is contained in:
commit
50b04d6b2b
@ -16,6 +16,7 @@ import (
|
|||||||
|
|
||||||
var provingCmd = &cli.Command{
|
var provingCmd = &cli.Command{
|
||||||
Name: "proving",
|
Name: "proving",
|
||||||
|
Usage: "View proving information",
|
||||||
Subcommands: []*cli.Command{
|
Subcommands: []*cli.Command{
|
||||||
provingInfoCmd,
|
provingInfoCmd,
|
||||||
provingDeadlinesCmd,
|
provingDeadlinesCmd,
|
||||||
@ -24,6 +25,7 @@ var provingCmd = &cli.Command{
|
|||||||
|
|
||||||
var provingInfoCmd = &cli.Command{
|
var provingInfoCmd = &cli.Command{
|
||||||
Name: "info",
|
Name: "info",
|
||||||
|
Usage: "View current state information",
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
|
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -146,6 +148,7 @@ func epochTime(curr, e abi.ChainEpoch) string {
|
|||||||
|
|
||||||
var provingDeadlinesCmd = &cli.Command{
|
var provingDeadlinesCmd = &cli.Command{
|
||||||
Name: "deadlines",
|
Name: "deadlines",
|
||||||
|
Usage: "View the current proving period deadlines information",
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
|
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user