talon-cli 0.4.1

Talon CLI: hybrid retrieval over Obsidian vaults and markdown corpora, with grounded answers, MCP server, and agent-native output.
Documentation
use crate::cli::InitArgs;
use crate::config;
use eyre::Result;
use std::io::{self, Write as _};

pub(super) fn emit(_args: &InitArgs) -> Result<()> {
    let result = config::init_config()?;
    let mut stderr = io::stderr().lock();
    if result {
        writeln!(
            stderr,
            "Created {}",
            config::default_config_path().display()
        )?;
    } else {
        writeln!(stderr, "Exists {}", config::default_config_path().display())?;
    }
    Ok(())
}