Files
codex/codex-rs/shell-command/src/lib.rs
jif 9899091441 Extract reusable Bash and Zsh startup scripts (#45749)
Expose `shell_startup_script` from `codex-shell-command` and use it for
interactive shell snapshot capture, preserving the existing startup scripts.
The helper returns an empty script for other shell types; callers remain
responsible for login startup flags and shell lifecycle.

GitOrigin-RevId: 8cb64c02c08140d2676e67b9db06c9a77649b3eb
2026-09-15 18:06:03 +00:00

15 lines
305 B
Rust

//! Command parsing and safety utilities shared across Codex crates.
pub mod shell_detect;
pub mod shell_snapshot;
mod startup;
pub use startup::shell_startup_script;
pub mod bash;
pub(crate) mod command_safety;
pub mod parse_command;
pub mod powershell;
pub use command_safety::is_dangerous_command;