-
Notifications
You must be signed in to change notification settings - Fork 74
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
Refactor output writer #514
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big like @attiasas!
Please consider my comments.
@@ -5,7 +5,6 @@ import ( | |||
"strings" | |||
|
|||
"github.com/jfrog/froggit-go/vcsutils" | |||
"github.com/jfrog/jfrog-cli-core/v2/xray/formats" | |||
) | |||
|
|||
type StandardOutput struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StandardOutput is not the best name IMO.
I suggest renaming it to "DecoratedOutput".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yahavi, I believe "StandardOutput" is a more fitting term. This is a Markdown interface, and "Standard" implies that it adheres to all the available features in Markdown, essentially representing the expected output. So, in my view, it's not just a decoration but rather the standard output in Markdown.
Refactor output writer and combine similar methods and operations.
Refactor output-related tests, combining similar tests
adding test cover on outputwriter package
fix bugs discovered in content
combine handling comments and their content