(reason: &str)
| 1451 | } |
| 1452 | |
| 1453 | fn missing_terminal_tui_error(reason: &str) -> Option<String> { |
| 1454 | if reason.contains("stdin is not a terminal") || reason.contains("stdout is not a terminal") { |
| 1455 | Some(format!( |
| 1456 | "experimental TUI requires an interactive terminal ({reason}); run `agentsync init --wizard` for the standard wizard" |
| 1457 | )) |
| 1458 | } else { |
| 1459 | None |
| 1460 | } |
| 1461 | } |
| 1462 | |
| 1463 | pub fn init_wizard_experimental_tui(project_root: &Path, force: bool) -> Result<()> { |
| 1464 | use colored::Colorize; |
no outgoing calls
no test coverage detected