diff --git a/README.md b/README.md index 79f9104e..784cd377 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,11 @@ You can also view releases and change log information in the [Releases](https:// ## Documentation -You can find the Mesh API documentation [here](https://docs.cdp.coinbase.com/mesh/docs/welcome/) +You can find the Mesh API documentation [here](https://github.com/coinbase/mesh-specifications) -For more information on the mesh-cli tool, read our [The mesh-cli tool](https://docs.cdp.coinbase.com/mesh/docs/mesh-cli/) documentation. +For more information on the mesh-cli tool, read our [The mesh-cli tool](https://github.com/coinbase/mesh-cli#readme) documentation. -For more information on how to test your implementation file with the `mesh-cli` tool, read our [How to Test Your Mesh Implementation](https://docs.cdp.coinbase.com/mesh/docs/mesh-test/) documentation. +For more information on how to test your implementation file with the `mesh-cli` tool, read our [How to Test Your Mesh Implementation](https://github.com/coinbase/mesh-cli#checkdata) documentation. ## Contributing diff --git a/pkg/results/construction_results.go b/pkg/results/construction_results.go index 3d968247..5d0872f6 100644 --- a/pkg/results/construction_results.go +++ b/pkg/results/construction_results.go @@ -44,18 +44,34 @@ type CheckConstructionResults struct { // Print logs CheckConstructionResults to the console. func (c *CheckConstructionResults) Print() { + fmt.Println() + fmt.Println("========================================") + if len(c.Error) > 0 { - fmt.Printf("\n") - color.Red("Error: %s", c.Error) + color.Red("STATUS: FAILED") + fmt.Println() + color.Yellow("Error Details:") + fmt.Printf(" %s\n", c.Error) + fmt.Println() + color.Cyan("Suggested Actions:") + fmt.Println(" 1. Review the error message above") + fmt.Println(" 2. Check your construction configuration") + fmt.Println(" 3. Verify the Rosetta server is accessible") + fmt.Println(" 4. Run with --help for more options") } else { - fmt.Printf("\n") - color.Green("Success: %s", types.PrintStruct(c.EndConditions)) + color.Green("STATUS: SUCCESS") + fmt.Println() + color.Cyan("Construction check completed successfully!") + fmt.Printf("End Conditions: %s\n", types.PrintStruct(c.EndConditions)) } + + fmt.Println() + fmt.Println("========================================") + fmt.Println() - fmt.Printf("\n") if c.Stats != nil { c.Stats.Print() - fmt.Printf("\n") + fmt.Println() } } diff --git a/pkg/results/data_results.go b/pkg/results/data_results.go index 7ff08dfa..44d33719 100644 --- a/pkg/results/data_results.go +++ b/pkg/results/data_results.go @@ -65,24 +65,46 @@ type CheckDataResults struct { // Print logs CheckDataResults to the console. func (c *CheckDataResults) Print() { + fmt.Println() + fmt.Println("========================================") + if len(c.Error) > 0 { - fmt.Printf("\n") - color.Red("Error: %s", c.Error) - } + color.Red("STATUS: FAILED") + fmt.Println() + color.Yellow("Error Details:") + fmt.Printf(" %s\n", c.Error) + fmt.Println() + color.Cyan("Suggested Actions:") + fmt.Println(" 1. Review the error message above") + fmt.Println(" 2. Check your configuration file") + fmt.Println(" 3. Verify the Rosetta server is accessible") + fmt.Println(" 4. Run with --help for more options") + } else { + color.Green("STATUS: SUCCESS") + fmt.Println() + color.Cyan("All checks passed successfully!") + } + + fmt.Println() + fmt.Println("========================================") + fmt.Println() if c.EndCondition != nil { - fmt.Printf("\n") - color.Green("Success: %s [%s]", c.EndCondition.Type, c.EndCondition.Detail) + fmt.Println("End Condition:") + fmt.Printf(" Type: %s\n", c.EndCondition.Type) + if len(c.EndCondition.Detail) > 0 { + fmt.Printf(" Detail: %s\n", c.EndCondition.Detail) + } + fmt.Println() } - fmt.Printf("\n") if c.Tests != nil { c.Tests.Print() - fmt.Printf("\n") + fmt.Println() } if c.Stats != nil { c.Stats.Print() - fmt.Printf("\n") + fmt.Println() } }