neurographrag 1.2.1

Local GraphRAG memory for LLMs in a single SQLite file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::errors::AppError;
use crate::namespace;
use crate::output;

#[derive(clap::Args)]
pub struct NamespaceDetectArgs {
    #[arg(long)]
    pub namespace: Option<String>,
}

pub fn run(args: NamespaceDetectArgs) -> Result<(), AppError> {
    let resolution = namespace::detect_namespace(args.namespace.as_deref())?;
    output::emit_json(&resolution)?;
    Ok(())
}