Skip to content

Commit

Permalink
Moved config printing to the end of the inspect all command
Browse files Browse the repository at this point in the history
  • Loading branch information
rosalinekarr committed May 10, 2019
1 parent 3cf6a08 commit 0ab24fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions commands/inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ Prints out information about filecoin process and its environment.
sw.Printf("Swap: \t%d\n", info.Memory.Swap)
sw.Printf("Virtual:\t%d\n", info.Memory.Virtual)

// Print Environment Info
sw.Printf("\nEnvironment\n")
sw.Printf("FilAPI: \t%s\n", info.Environment.FilAPI)
sw.Printf("FilPath:\t%s\n", info.Environment.FilPath)
sw.Printf("GoPath: \t%s\n", info.Environment.GoPath)

// Print Config Info
sw.Printf("\nConfig\n")
marshaled, err := json.MarshalIndent(info.Config, "", "\t")
Expand All @@ -93,12 +99,6 @@ Prints out information about filecoin process and its environment.
}
sw.Printf("%s\n", marshaled)

// Print Environment Info
sw.Printf("\nEnvironment\n")
sw.Printf("FilAPI: \t%s\n", info.Environment.FilAPI)
sw.Printf("FilPath:\t%s\n", info.Environment.FilPath)
sw.Printf("GoPath: \t%s\n", info.Environment.GoPath)

return sw.Error()
}),
},
Expand Down

0 comments on commit 0ab24fc

Please sign in to comment.