This commit is contained in:
2025-02-10 20:54:32 +01:00
parent 40c5eaf3d5
commit 9d744550c1
6 changed files with 44 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ use clap::{Parser, Subcommand};
use futures::{Stream, TryStreamExt, io};
use orchid_base::clone;
use orchid_base::error::ReporterImpl;
use orchid_base::format::{FmtCtxImpl, take_first};
use orchid_base::format::{FmtCtxImpl, Format, take_first};
use orchid_base::logging::{LogStrategy, Logger};
use orchid_base::parse::Snippet;
use orchid_base::tree::ttv_fmt;
@@ -111,7 +111,7 @@ async fn main() -> io::Result<ExitCode> {
return;
}
for item in ptree {
println!("{item:?}")
println!("{}", take_first(&item.print(&FmtCtxImpl { i: &ctx.i }).await, true))
}
},
}