Move shell snapshot scripts into codex-shell-command (#39281)

## What changed

- Add a public `snapshot_script` helper to `codex-shell-command` for Bash,
  Zsh, POSIX shell, and PowerShell, returning `None` for Command Prompt.
- Update `codex-core` and its shell snapshot tests to use the shared helper
  without changing snapshot behavior.

GitOrigin-RevId: 779b9dc964635b717922ea9f5646b94c4dbb0da1
This commit is contained in:
jif
2026-08-18 21:11:30 +00:00
committed by copyberry
parent 88c39c4578
commit 681c82f497
4 changed files with 217 additions and 203 deletions
+1
View File
@@ -1,6 +1,7 @@
//! Command parsing and safety utilities shared across Codex crates.
pub mod shell_detect;
pub mod shell_snapshot;
pub mod bash;
pub(crate) mod command_safety;