feat: with output
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-01-28 21:49:52 +01:00
parent 663fe0b199
commit 5875c96aa8
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
3 changed files with 11 additions and 1 deletions

1
Cargo.lock generated
View File

@ -335,6 +335,7 @@ dependencies = [
"serde_json", "serde_json",
"serde_yaml", "serde_yaml",
"tokio", "tokio",
"tracing",
] ]
[[package]] [[package]]

View File

@ -22,6 +22,7 @@ tokio.workspace = true
serde_json.workspace = true serde_json.workspace = true
serde_yaml.workspace = true serde_yaml.workspace = true
serde.workspace = true serde.workspace = true
tracing = {version = "0.1.40", features = ["log"]}
[dev-dependencies] [dev-dependencies]
tokio.workspace = true tokio.workspace = true

View File

@ -35,7 +35,15 @@ pub mod well_known {
use super::CuddleX; use super::CuddleX;
pub async fn render() -> eyre::Result<()> { pub async fn render() -> eyre::Result<()> {
CuddleX::command("render").run().await?; let (stdout, stderr, _) = CuddleX::command("render").run().await?;
for line in stdout.lines() {
tracing::trace!("render: {}", line);
}
for line in stderr.lines() {
tracing::trace!("render: {}", line);
}
Ok(()) Ok(())
} }