use newt_core::agentic::print_newt;
use crate::run_newt_subcmd;
pub(crate) fn dispatch(arg1: &str, color: bool, verbose: bool) -> anyhow::Result<bool> {
let result = if arg1.is_empty() {
run_newt_subcmd(&["setup"], color, verbose)
} else {
run_newt_subcmd(&["setup", arg1], color, verbose)
};
if let Err(e) = result {
print_newt(&format!("setup failed: {e}"), color, verbose);
} else {
print_newt(
"backend changes apply to new sessions — /backends lists what's configured",
color,
verbose,
);
}
Ok(true)
}