Files
codex/codex-rs/execpolicy2/src/command.rs
2025-11-13 22:07:37 -05:00

10 lines
271 B
Rust

use crate::error::Error;
use crate::error::Result;
pub fn tokenize_command(raw: &str) -> Result<Vec<String>> {
shlex::split(raw).ok_or_else(|| Error::TokenizationFailed {
example: raw.to_string(),
reason: "invalid shell tokens".to_string(),
})
}