-
Notifications
You must be signed in to change notification settings - Fork 68
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
feat: [#410] Remove gookit/color, use pterm/pterm instead #479
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #479 +/- ##
==========================================
+ Coverage 70.30% 70.37% +0.06%
==========================================
Files 172 173 +1
Lines 10538 10594 +56
==========================================
+ Hits 7409 7455 +46
- Misses 2562 2572 +10
Partials 567 567 β View full report in Codecov by Sentry. |
support/color/color.go
Outdated
|
||
func Whitep(a ...any) { white.Print(a...) } | ||
|
||
func Sbluef(format string, a ...any) string { return blue.Sprintf(format, a...) } |
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.
How about color.Blue.Sprintf
? All methods can change to this style. color.New(color.Green).Sprintf
can be a basic method.
color.Yellow().Println("**************************************") | ||
color.Yellow().Println("* Application In Production! *") | ||
color.Yellow().Printfln("**************************************") | ||
color.Default().Println(color.Green().Sprintf("Do you really wish to run this command? (yes/no) ") + "[" + color.Green().Sprintf("no") + "]" + ":") | ||
|
||
var result string | ||
_, err := fmt.Scanln(&result) |
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.
Can we use ctx.Confirm
directly?
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.
It will be fixed in next PR. (make commands support -f flag)
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.
Great
Closes goravel/goravel#410
π Description
β Checks
βΉ Additional Information