Added an option to hide sector info for lotus-miner info
This commit is contained in:
parent
2c1d96bcaa
commit
64f24fd276
@ -33,6 +33,12 @@ var infoCmd = &cli.Command{
|
|||||||
Subcommands: []*cli.Command{
|
Subcommands: []*cli.Command{
|
||||||
infoAllCmd,
|
infoAllCmd,
|
||||||
},
|
},
|
||||||
|
Flags: []cli.Flag{
|
||||||
|
&cli.BoolFlag{
|
||||||
|
Name: "hide-sectors-info",
|
||||||
|
Usage: "hide sectors info",
|
||||||
|
},
|
||||||
|
},
|
||||||
Action: infoCmdAct,
|
Action: infoCmdAct,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,11 +205,13 @@ func infoCmdAct(cctx *cli.Context) error {
|
|||||||
|
|
||||||
fmt.Printf("Expected Seal Duration: %s\n\n", sealdur)
|
fmt.Printf("Expected Seal Duration: %s\n\n", sealdur)
|
||||||
|
|
||||||
|
if !cctx.Bool("hide-sectors-info") {
|
||||||
fmt.Println("Sectors:")
|
fmt.Println("Sectors:")
|
||||||
err = sectorsInfo(ctx, nodeApi)
|
err = sectorsInfo(ctx, nodeApi)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: grab actr state / info
|
// TODO: grab actr state / info
|
||||||
// * Sealed sectors (count / bytes)
|
// * Sealed sectors (count / bytes)
|
||||||
|
Loading…
Reference in New Issue
Block a user