public ValueTask <int> ShowHelp( [FromService] ICoconaHelpMessageBuilder helpBuilder, [FromService] ICoconaConsoleProvider console ) { console.Output.Write(helpBuilder.BuildAndRenderForCurrentContext()); return(new ValueTask <int>(129)); }
public void ForContext(bool optionA, [FromService] ICoconaHelpMessageBuilder helpMessageBuilder) { // Show commands help. (same as `./HelpOnDemand --help`) Console.WriteLine(helpMessageBuilder.BuildAndRenderForCurrentContext()); }
public void Help([FromService] ICoconaHelpMessageBuilder helpMessageBuilder) { _console.Out.WriteLine(helpMessageBuilder.BuildAndRenderForCurrentContext()); }
private void ShowDefaultMessage() { _console.Output.Write(_helpBuilder.BuildAndRenderForCurrentContext()); }