public Task <int> Intercept(InterceptorExecutionDelegate next, string interceptorOpt, [Option(AssignToExecutableSubcommands = true)] string inheritedOpt) { TestOutputs.Capture(new InterceptResult { InheritedOpt = inheritedOpt, InterceptorOpt = interceptorOpt }); return(next()); }
public void Greet() => TestOutputs.Capture($"Hello, my name is {Name}. My parent is {ParentName ?? "null"}. My grandparent is {GrandParentName}.");
public void Greet() => TestOutputs.Capture($"Hello, my name is {Name}. My parent is {ParentName}. My child is {MyChild?.Name ?? "null"}");
public void Greet() => TestOutputs.Capture($"Hello, my name is {Name}. My child is {Child?.Name ?? "null"}. My grandchild is {GrandChild?.Name ?? "null"}.");
public void Do(int arg1, [Option] int opt1) { TestOutputs.Capture(new DoResult { Arg1 = arg1, Opt1 = opt1 }); }
public Root([Option] string rootOpt = null) { TestOutputs.Capture(new RootGlobalResult { RootOpt = rootOpt }); }
public void Do2(ArgModel2 model) { TestOutputs.Capture(model); }
public void Do1(ArgModel1 model) { TestOutputs.Capture(model); }