Rust · 1079 bytes Raw Blame History
1 // Rush executor - Command execution engine
2
3 pub mod background;
4 pub mod command;
5 pub mod command_subst_exec;
6 pub mod control_flow;
7 pub mod pipeline;
8 pub mod process_subst;
9 pub mod redirect;
10 pub mod subshell;
11 pub mod terminal;
12 pub mod test_builtin;
13
14 pub use background::{execute_pipeline_background, execute_simple_background};
15 pub use command::{execute_command, execute_statement, ExecutionError, ExecutionResult};
16 #[cfg(unix)]
17 pub use command::JobControlInfo;
18 pub use command_subst_exec::execute_for_substitution;
19 pub use control_flow::{execute_case, execute_for, execute_if, execute_select, execute_while};
20 pub use pipeline::{execute_and_or_list, execute_pipeline, execute_simple_with_redirects, PipelineError};
21 pub use process_subst::{cleanup_all as cleanup_process_substs, wait_for_all as wait_for_process_substs};
22 pub use redirect::RedirectError;
23 pub use subshell::{execute_subshell, execute_subshell_background};
24
25 // Export signal setup function
26 #[cfg(unix)]
27 pub use terminal::unix::setup_shell_signals;
28
29 #[cfg(not(unix))]
30 pub use terminal::non_unix::setup_shell_signals;
31