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() } }