MCPcopy Create free account
hub / github.com/dallay/agentsync / missing_terminal_tui_error

Function missing_terminal_tui_error

src/init.rs:1453–1461  ·  view source on GitHub ↗
(reason: &str)

Source from the content-addressed store, hash-verified

1451}
1452
1453fn 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
1463pub fn init_wizard_experimental_tui(project_root: &Path, force: bool) -> Result<()> {
1464 use colored::Colorize;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected