Skip to main content

Module ctx_shell

Module ctx_shell 

Source

Functions§

contains_auth_flow
Detects OAuth device code flow output that must not be compressed. Uses a two-tier approach: strong signals match alone (very specific to device code flows), weak signals require a URL/domain in the same output.
handle
validate_command
Validates a shell command before execution. Returns Some(error_message) if the command should be rejected, None if it’s safe to run.