Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamietanna opened this issue Jun 13, 2022 · 2 comments
Open

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

jamietanna opened this issue Jun 13, 2022 · 2 comments

Comments

@jamietanna
Copy link

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{}
@AlexanderAsmakov
Copy link
Collaborator

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?

@davidaparicio
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants