Skip to content

Commit

Permalink
chore(cli): Add cli::ui
Browse files Browse the repository at this point in the history
This adds various abstrations for easier composability of different output
effects.
  • Loading branch information
tingerrr committed Aug 2, 2024
1 parent 8a24db0 commit 258c672
Show file tree
Hide file tree
Showing 13 changed files with 833 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ env_proxy = "0.4.1"
flate2 = "1.0.30"
fontdb = "0.18.0"
indoc = "2.0.5"
insta = "1.39.0"
ignore = "0.4.22"
native-tls = "0.2.12"
once_cell = "1.19.0"
Expand Down
1 change: 1 addition & 0 deletions crates/typst-test-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ecow.workspace = true
env_proxy.workspace = true
flate2.workspace = true
fontdb.workspace = true
insta = { workspace = true, features = ["yaml"] }
native-tls.workspace = true
once_cell.workspace = true
rayon.workspace = true
Expand Down
1 change: 1 addition & 0 deletions crates/typst-test-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod package;
mod project;
mod report;
mod test;
mod ui;
mod world;

fn color_stream(color: ColorChoice, is_stderr: bool) -> StandardStream {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: crates/typst-test-cli/src/ui.rs
expression: str
---
Hello

World
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
source: crates/typst-test-cli/src/ui.rs
expression: str
---
Heading
Hello

World
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
source: crates/typst-test-cli/src/ui.rs
expression: str
---
Heading
 Hello World
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: crates/typst-test-cli/src/ui.rs
expression: str
---
Hello

World
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: crates/typst-test-cli/src/ui.rs
expression: str
---
Hello

World
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: crates/typst-test-cli/src/ui.rs
expression: str
---
Hello

World
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: crates/typst-test-cli/src/ui.rs
expression: str
---
 Hello

 World
Loading

0 comments on commit 258c672

Please sign in to comment.