-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ricardo-valero/refactoring
Refactoring
- Loading branch information
Showing
4 changed files
with
220 additions
and
96 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
examples/colors | ||
examples/styles | ||
examples/animals | ||
examples/tui-menu | ||
|
||
generated-docs/ | ||
|
||
format.sh | ||
format.sh |
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,19 @@ | ||
app "styles" | ||
packages { | ||
cli: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br", | ||
ansi: "../package/main.roc", | ||
} | ||
imports [cli.Stdout, ansi.Core] | ||
provides [main] to cli | ||
|
||
main = | ||
[ | ||
"Bold On" |> Core.withStyle [Bold On] |> Core.withStyle [Default], | ||
"Italicized On" |> Core.withStyle [Italicized On] |> Core.withStyle [Default], | ||
"Strikethrough On" |> Core.withStyle [Strikethrough On] |> Core.withStyle [Default], | ||
"Underlined On" |> Core.withStyle [Underlined On] |> Core.withStyle [Default], | ||
"Combination" |> Core.withStyle [Bold On, Italicized On, Strikethrough On, Underlined On], | ||
"This should have the last style", | ||
] | ||
|> Str.joinWith "\n" | ||
|> Stdout.line |
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.