예제 #1
0
 public override IApiMethodBuilderResult Build(ExpressionBuilderParams p,
                                               FunctionCallStatement functionCallStatement)
 {
     return(BashTestCommand.CreateTestExpression(this, p, functionCallStatement, (p1, fcs) =>
                                                 new ExpressionResult(
                                                     TypeDescriptor,
                                                     $"[ $(whoami) == 'root' ]",
                                                     functionCallStatement
                                                     )));
 }
예제 #2
0
 public override IApiMethodBuilderResult Build(ExpressionBuilderParams p,
                                               FunctionCallStatement functionCallStatement)
 {
     return(BashTestCommand.CreateTestExpression(this, p, functionCallStatement, "z"));
 }