add chat lang

This commit is contained in:
2026-01-20 18:47:52 +09:00
parent a77dde0366
commit 39308cdc85
20 changed files with 342 additions and 24 deletions

View File

@@ -144,6 +144,14 @@ enum Commands {
/// Run MCP server (for Claude Code integration)
#[command(name = "mcp-serve")]
McpServe,
/// Rebuild index.json files for content collections
#[command(alias = "i")]
Index {
/// Content directory
#[arg(short, long, default_value = "public/content")]
dir: String,
},
}
#[tokio::main]
@@ -190,6 +198,9 @@ async fn main() -> Result<()> {
Commands::McpServe => {
mcp::serve()?;
}
Commands::Index { dir } => {
commands::index::run(std::path::Path::new(&dir))?;
}
}
Ok(())