pub struct TaskRunner { /* private fields */ }Expand description
Task runner for executing Azure DevOps tasks
Implementations§
Source§impl TaskRunner
impl TaskRunner
Sourcepub fn new(cache_dir: PathBuf) -> Self
pub fn new(cache_dir: PathBuf) -> Self
Create a new task runner with the specified cache directory
Sourcepub fn with_cache(cache: TaskCache) -> Self
pub fn with_cache(cache: TaskCache) -> Self
Create a task runner with a custom task cache
Sourcepub fn with_node_path(self, path: impl AsRef<Path>) -> Self
pub fn with_node_path(self, path: impl AsRef<Path>) -> Self
Set the Node.js path
Sourcepub fn with_powershell_path(self, path: impl AsRef<Path>) -> Self
pub fn with_powershell_path(self, path: impl AsRef<Path>) -> Self
Set the PowerShell path
Sourcepub async fn execute_task(
&self,
task_ref: &str,
inputs: &HashMap<String, String>,
env: &HashMap<String, String>,
working_dir: &Path,
) -> Result<StepResult, TaskRunnerError>
pub async fn execute_task( &self, task_ref: &str, inputs: &HashMap<String, String>, env: &HashMap<String, String>, working_dir: &Path, ) -> Result<StepResult, TaskRunnerError>
Execute a task
Auto Trait Implementations§
impl Freeze for TaskRunner
impl !RefUnwindSafe for TaskRunner
impl Send for TaskRunner
impl Sync for TaskRunner
impl Unpin for TaskRunner
impl UnsafeUnpin for TaskRunner
impl !UnwindSafe for TaskRunner
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more