- Create
cmd/utils/errors.go and add FormatError(message string) string function to centralize the repeated styling.ErrorBorder.Render(styling.ErrorColor.Render("✖ Error!"), ...) pattern
This will replace 10 call sites across validateargs.go, connection.go, cli.go, pokemonflagset.go, and model_input.go
cmd/utils/errors.goand addFormatError(message string) stringfunction to centralize the repeatedstyling.ErrorBorder.Render(styling.ErrorColor.Render("✖ Error!"), ...)patternThis will replace 10 call sites across
validateargs.go,connection.go,cli.go,pokemonflagset.go, andmodel_input.go