elph 0.0.5

Minimalist AI agent companion for coding
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::app;
use crate::app::{EXIT_SUCCESS, ExitCode};

/// Launch the TUI (default, no subcommand).
pub fn handle() -> ExitCode {
    app::run();

    #[cfg(unix)]
    {
        use std::sync::atomic::Ordering;
        if crate::app::SHOULD_KILL_PARENT.load(Ordering::Relaxed) {
            crate::app::kill_parent();
        }
    }

    EXIT_SUCCESS
}