public TBuilder WithExample(string command, Action <ReplExampleBuilder>?configExample = null) { var exampleBuilder = new ReplExampleBuilder().WithCommand(command); configExample?.Invoke(exampleBuilder); examples.Add(exampleBuilder); return((TBuilder)this); }
public ReplExampleRuntime(ReplExampleBuilder builder) { this.Command = builder.command; this.Caption = builder.caption; this.Description = builder.description; }