karapace/crates/karapace-cli/src/commands/tui.rs
Marco Allegretti 8e90f45efc Add new and tui CLI commands
Add 'karapace new' to generate a manifest from templates or prompts.

Add 'karapace tui' to launch the terminal UI.

Improve env-id resolution errors in non-JSON output with suggestions.

Add dialoguer and toml as CLI dependencies.
2026-02-23 12:15:39 +01:00

10 lines
265 B
Rust

use super::EXIT_SUCCESS;
use std::path::Path;
pub fn run(store_path: &Path, json: bool) -> Result<u8, String> {
if json {
return Err("JSON output is not supported for 'tui'".to_owned());
}
karapace_tui::run(store_path)?;
Ok(EXIT_SUCCESS)
}