Module command_safety

Module command_safety 

Source
Expand description

Command safety analysis module

This module provides functions to determine if shell commands are safe to execute automatically or potentially dangerous and require user confirmation.

Reference: vendors/codex/codex-rs/core/src/command_safety/

Functionsยง

command_might_be_dangerous
Check if a command might be dangerous
extract_command_basename
Extract the basename of a command, handling full paths
is_known_safe_command
Check if a command is known to be safe (read-only, non-destructive)