go-mutesting icon indicating copy to clipboard operation
go-mutesting copied to clipboard

Consider adding coloured output (i.e. via Chroma)

Open jamietanna opened this issue 3 years ago • 2 comments

For better readability, compare (suggestion):

--- Original
+++ New
@@ -19,7 +19,7 @@
 // UploadFile Upload a given file to the Media Endpoint
 func UploadFile(accessToken string, endpoint string, filePath string) (*Response, error) {
 	if len(endpoint) == 0 {
-		return nil, errors.New("the Micropub server does not advertise/support a Media Endpoint")
+		_ = errors.New
 	}
 
 	client := &http.Client{}

To (original):

--- Original
+++ New
@@ -19,7 +19,7 @@
 // UploadFile Upload a given file to the Media Endpoint
 func UploadFile(accessToken string, endpoint string, filePath string) (*Response, error) {
 	if len(endpoint) == 0 {
-		return nil, errors.New("the Micropub server does not advertise/support a Media Endpoint")
+		_ = errors.New
 	}
 
 	client := &http.Client{}

jamietanna avatar Jun 13 '22 17:06 jamietanna

We have an idea to make downloading a handy test report. Will this solve the problem or do you want to see beautiful output directly in the console?

AlexanderAsmakov avatar Jul 29 '22 15:07 AlexanderAsmakov

Maybe it's a good start/move to use : https://github.com/charmbracelet/log 👍

davidaparicio avatar Feb 23 '23 14:02 davidaparicio