Struct deno_task_shell::ShellCommandContext
source · pub struct ShellCommandContext {
pub args: Vec<String>,
pub state: ShellState,
pub stdin: ShellPipeReader,
pub stdout: ShellPipeWriter,
pub stderr: ShellPipeWriter,
pub execute_command_args: Box<dyn FnOnce(ExecuteCommandArgsContext) -> FutureExecuteResult>,
}
Fields§
§args: Vec<String>
§state: ShellState
§stdin: ShellPipeReader
§stdout: ShellPipeWriter
§stderr: ShellPipeWriter
§execute_command_args: Box<dyn FnOnce(ExecuteCommandArgsContext) -> FutureExecuteResult>
Implementations§
source§impl ShellCommandContext
impl ShellCommandContext
sourcepub fn resolve_command_path(
&self,
command_name: &str
) -> Result<PathBuf, ResolveCommandPathError>
pub fn resolve_command_path( &self, command_name: &str ) -> Result<PathBuf, ResolveCommandPathError>
Resolves the path to a command from the current working directory.
Does not take injected custom commands into account.
Auto Trait Implementations§
impl Freeze for ShellCommandContext
impl !RefUnwindSafe for ShellCommandContext
impl !Send for ShellCommandContext
impl !Sync for ShellCommandContext
impl Unpin for ShellCommandContext
impl !UnwindSafe for ShellCommandContext
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