-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add additional generic components and helpers #224
Conversation
9314b92
to
81995d3
Compare
81995d3
to
5a47482
Compare
component/printer/color.go
Outdated
var ( | ||
FaintColor = color.New(color.Faint) | ||
InfoColor = color.New(color.FgCyan) | ||
SuccessColor = color.New(color.FgGreen) | ||
WarnColor = color.New(color.FgYellow) | ||
ErrorColor = color.New(color.FgRed) | ||
BoldColor = color.New(color.Bold) | ||
) |
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.
Noticed that we already have compnent/colorable-tty.go
which holds similar color specific helpers. Check to see how we can combine both.
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.
I have deprecated some of the string helpers in colorable-tty.go
and created a new package stringutils
which includes all the string specific utils functions along with color
specific helpers.
70bfe9c
to
b6d6e7a
Compare
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.
Nice stuff.
Thanks for the effort!
3fc5814
to
4fae43f
Compare
4fae43f
to
26ad5bc
Compare
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.
LGTM
Very nice.
If there are things to tweak when we start using this change in an existing plugin, we can fix in another PR.
What this PR does / why we need it
Add additional generic components and helpers functions
Arg
,Error
andExtend
helpers undercommand
packagecomponent/icons
packagecomponent/stringutils
packagecomponent/tabwriter
packageWhich issue(s) this PR fixes
Fixes #
Describe testing done for PR
Release note
Additional information
Special notes for your reviewer