-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into replace-rm-dist-with-clean
- Loading branch information
Showing
27 changed files
with
480 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
package common | ||
|
||
type ColorStruct struct { | ||
NoColor bool | ||
Reset string | ||
Green string | ||
Yellow string | ||
Blue string | ||
Purple string | ||
NoColor bool | ||
Reset string | ||
Green string | ||
Yellow string | ||
Blue string | ||
Purple string | ||
} | ||
|
||
func NoColorCheck (NoColorBool bool) *ColorStruct { | ||
var colors ColorStruct | ||
colors = ColorStruct{ | ||
NoColor : true, | ||
Reset : "", | ||
Green : "", | ||
Yellow : "", | ||
Blue : "", | ||
Purple : "", | ||
} | ||
if !NoColorBool { | ||
colors = ColorStruct{ | ||
NoColor : false, | ||
Reset : "\033[0m", | ||
Green : "\033[32m", | ||
Yellow : "\033[33m", | ||
Blue : "\033[34m", | ||
Purple : "\033[35m", | ||
} | ||
} | ||
return &colors | ||
func NoColorCheck(noColorBool bool) *ColorStruct { | ||
var colors ColorStruct | ||
colors = ColorStruct{ | ||
NoColor: true, | ||
Reset: "", | ||
Green: "", | ||
Yellow: "", | ||
Blue: "", | ||
Purple: "", | ||
} | ||
if !noColorBool { | ||
colors = ColorStruct{ | ||
NoColor: false, | ||
Reset: "\033[0m", | ||
Green: "\033[32m", | ||
Yellow: "\033[33m", | ||
Blue: "\033[34m", | ||
Purple: "\033[35m", | ||
} | ||
} | ||
return &colors | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.