mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
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
15 lines
305 B
Rust
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;
|