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"));
 }