예제 #1
0
 public static ITascTarget Exec(this ITascTarget target, string command, params string[] cmdParams)
 {
     return(target.Do(new ExecTasc(command, cmdParams)
     {
         RunWindowed = false
     }));
 }
예제 #2
0
 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;
     })));
 }
예제 #3
0
 public static ITascTarget Echo(this ITascTarget target, string line)
 {
     return(target.Do(new EchoTasc(line)));
 }
예제 #4
0
 public static ITascTarget Tasc(this ITascTarget target, Func <TascContext, ITascResult> action)
 {
     return(target.Do(new GenericTasc(action)));
 }