pub struct SafeCommandsConfig {
pub tools: Vec<String>,
pub shell: Vec<String>,
}Expand description
The [safe_commands] section of a manifest.
Entry syntax is not checked here. What counts as a usable shell prefix is defined by the key parser in the CLI (a program, optionally with the subcommand that narrows it), which this crate does not depend on. A bad entry is a lint finding and is skipped with a warning at spawn, rather than a parse error - the same place the check can be written once instead of twice.
Fields§
§tools: Vec<String>Tools that need no prompt whatever their arguments.
shell: Vec<String>Shell command prefixes that need no prompt: "cargo test", not
"cargo test --lib" and never "cargo".
Trait Implementations§
Source§impl Clone for SafeCommandsConfig
impl Clone for SafeCommandsConfig
Source§fn clone(&self) -> SafeCommandsConfig
fn clone(&self) -> SafeCommandsConfig
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 SafeCommandsConfig
impl Debug for SafeCommandsConfig
Source§impl Default for SafeCommandsConfig
impl Default for SafeCommandsConfig
Source§fn default() -> SafeCommandsConfig
fn default() -> SafeCommandsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SafeCommandsConfig
impl<'de> Deserialize<'de> for SafeCommandsConfig
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
impl Eq for SafeCommandsConfig
Source§impl PartialEq for SafeCommandsConfig
impl PartialEq for SafeCommandsConfig
Source§impl Serialize for SafeCommandsConfig
impl Serialize for SafeCommandsConfig
impl StructuralPartialEq for SafeCommandsConfig
Auto Trait Implementations§
impl Freeze for SafeCommandsConfig
impl RefUnwindSafe for SafeCommandsConfig
impl Send for SafeCommandsConfig
impl Sync for SafeCommandsConfig
impl Unpin for SafeCommandsConfig
impl UnsafeUnpin for SafeCommandsConfig
impl UnwindSafe for SafeCommandsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.