pub struct CommandConfig {
pub wrappers: Vec<WrapperSpec>,
pub shells: Vec<String>,
pub eval_commands: Vec<String>,
pub source_commands: Vec<String>,
}Expand description
Complete command classification configuration.
Drives all indirect execution detection — no command knowledge is hardcoded
in the parser source. Consumers load this from JSON/TOML/YAML and pass it
to [resolve_command_with].
Fields§
§wrappers: Vec<WrapperSpec>Transparent wrappers that execute an inner command (env, sudo, etc.).
shells: Vec<String>Shells that can spawn inline code via -c (bash, sh, zsh, etc.).
When invoked without -c, classified as script execution.
eval_commands: Vec<String>Commands that execute their argument as shell code (eval).
source_commands: Vec<String>Commands that execute a file in the current shell (source, .).
Trait Implementations§
Source§impl Clone for CommandConfig
impl Clone for CommandConfig
Source§fn clone(&self) -> CommandConfig
fn clone(&self) -> CommandConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandConfig
impl Debug for CommandConfig
Source§impl<'de> Deserialize<'de> for CommandConfig
impl<'de> Deserialize<'de> for CommandConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CommandConfig
impl PartialEq for CommandConfig
Source§fn eq(&self, other: &CommandConfig) -> bool
fn eq(&self, other: &CommandConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommandConfig
impl Serialize for CommandConfig
impl Eq for CommandConfig
impl StructuralPartialEq for CommandConfig
Auto Trait Implementations§
impl Freeze for CommandConfig
impl RefUnwindSafe for CommandConfig
impl Send for CommandConfig
impl Sync for CommandConfig
impl Unpin for CommandConfig
impl UnsafeUnpin for CommandConfig
impl UnwindSafe for CommandConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more