cli: fix not being able to redirect traces to a file from inline query

This commit is contained in:
Jussi Saurio
2025-07-16 13:55:33 +03:00
parent 99d61aad3c
commit 2fbb21fc17
3 changed files with 13 additions and 15 deletions

View File

@@ -26,8 +26,7 @@ pub static HOME_DIR: LazyLock<PathBuf> =
pub static HISTORY_FILE: LazyLock<PathBuf> = LazyLock::new(|| HOME_DIR.join(".limbo_history"));
fn main() -> anyhow::Result<()> {
let mut app = app::Limbo::new()?;
let _guard = app.init_tracing()?;
let (mut app, _guard) = app::Limbo::new()?;
if std::io::IsTerminal::is_terminal(&std::io::stdin()) {
let mut rl = Editor::with_config(rustyline_config())?;