Skip to content

Commit

Permalink
Merge pull request #7384 from filecoin-project/feat/more-allinfo
Browse files Browse the repository at this point in the history
Add more info to miner allinfo command
  • Loading branch information
magik6k authored Sep 27, 2021
2 parents 0e7e665 + 53a9dd5 commit dbcb662
Showing 1 changed file with 93 additions and 2 deletions.
95 changes: 93 additions & 2 deletions cmd/lotus-miner/info_all.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@ var infoAllCmd = &cli.Command{
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Proving Info")
if err := provingInfoCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Proving Deadlines")
if err := provingDeadlinesCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Proving Faults")
if err := provingFaultsCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Sealing Jobs")
if err := sealingJobsCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
Expand All @@ -92,20 +107,96 @@ var infoAllCmd = &cli.Command{
}

fmt.Println("\n#: Storage Deals")
if err := dealsListCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
{
fs := &flag.FlagSet{}
for _, f := range dealsListCmd.Flags {
if err := f.Apply(fs); err != nil {
fmt.Println("ERROR: ", err)
}
}
if err := fs.Parse([]string{"--verbose"}); err != nil {
fmt.Println("ERROR: ", err)
}

if err := dealsListCmd.Action(cli.NewContext(cctx.App, fs, cctx)); err != nil {
fmt.Println("ERROR: ", err)
}
}

fmt.Println("\n#: Storage Deals JSON")
{
fs := &flag.FlagSet{}
for _, f := range dealsListCmd.Flags {
if err := f.Apply(fs); err != nil {
fmt.Println("ERROR: ", err)
}
}
if err := fs.Parse([]string{"--verbose", "--format=json"}); err != nil {
fmt.Println("ERROR: ", err)
}

if err := dealsListCmd.Action(cli.NewContext(cctx.App, fs, cctx)); err != nil {
fmt.Println("ERROR: ", err)
}
}

fmt.Println("\n#: Retrieval Deals")
if err := retrievalDealsListCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Data Transfers")
{
fs := &flag.FlagSet{}
for _, f := range transfersListCmd.Flags {
if err := f.Apply(fs); err != nil {
fmt.Println("ERROR: ", err)
}
}
if err := fs.Parse([]string{"--verbose", "--completed", "--show-failed"}); err != nil {
fmt.Println("ERROR: ", err)
}

if err := transfersListCmd.Action(cli.NewContext(cctx.App, fs, cctx)); err != nil {
fmt.Println("ERROR: ", err)
}
}

fmt.Println("\n#: DAGStore shards")
if err := dagstoreListShardsCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Pending Batch Deals")
if err := dealsPendingPublish.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Pending Batch Terminations")
if err := sectorsTerminatePendingCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Pending Batch PreCommit")
if err := sectorsBatchingPendingPreCommit.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Pending Batch Commit")
if err := sectorsBatchingPendingCommit.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Sector List")
if err := sectorsListCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Expired Sectors")
if err := sectorsExpiredCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
}

fmt.Println("\n#: Sector Refs")
if err := sectorsRefsCmd.Action(cctx); err != nil {
fmt.Println("ERROR: ", err)
Expand Down

0 comments on commit dbcb662

Please sign in to comment.