public static ITascTarget Exec(this ITascTarget target, string command, params string[] cmdParams) { return(target.Do(new ExecTasc(command, cmdParams) { RunWindowed = false })); }
public static ITascTarget Tasc(this ITascTarget target, Action <TascContext> action) { return(target.Do(new GenericTasc(context => { try { action(context); } catch (TascException) { return TascResult.Fail; } return TascResult.Pass; }))); }
public static ITascTarget Echo(this ITascTarget target, string line) { return(target.Do(new EchoTasc(line))); }
public static ITascTarget Tasc(this ITascTarget target, Func <TascContext, ITascResult> action) { return(target.Do(new GenericTasc(action))); }