2026-07-11 18:23:01 +07:00
|
|
|
use crate::app::state::rest::AppStateRest;
|
|
|
|
|
use crate::app::state::types::Overlay;
|
|
|
|
|
|
|
|
|
|
pub fn handle_bash_submit(state: &mut AppStateRest, command: String) {
|
|
|
|
|
if !command.is_empty() {
|
|
|
|
|
let _job = crate::app::bgbash::job::spawn_bash_job(command);
|
|
|
|
|
state.dirty = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-11 20:21:59 +07:00
|
|
|
#[expect(dead_code)]
|
2026-07-11 18:23:01 +07:00
|
|
|
pub fn handle_bash_dismiss(state: &mut AppStateRest) {
|
|
|
|
|
state.misc.overlay = Overlay::None;
|
|
|
|
|
state.dirty = true;
|
|
|
|
|
}
|