-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: force colors when using ansifmt, add tests for ansifmt
- Loading branch information
1 parent
32bbbd7
commit 54334bd
Showing
3 changed files
with
96 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
togomak { | ||
version = 2 | ||
} | ||
|
||
stage "colors" { | ||
for_each = toset([ | ||
"error", | ||
"success", | ||
"warn", | ||
"warning", | ||
"info", | ||
"red", | ||
"green", | ||
"blue", | ||
"yellow", | ||
"bold", | ||
"italic", | ||
"cyan", | ||
"grey", | ||
"white", | ||
"magenta", | ||
"orange", | ||
"hi-green", | ||
"hi-blue", | ||
"hi-magenta", | ||
"hi-black", | ||
"hi-white", | ||
"hi-red", | ||
"hi-cyan", | ||
"hi-yellow", | ||
]) | ||
|
||
script = "echo ${ansifmt(each.key, "hello world")}" | ||
} |
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