public CoconaHelpMessageBuilder(ICoconaAppContextAccessor appContext, ICoconaCommandHelpProvider commandHelpProvider, ICoconaHelpRenderer helpRenderer, ICoconaCommandProvider commandProvider)
 {
     _appContext          = appContext;
     _commandHelpProvider = commandHelpProvider;
     _helpRenderer        = helpRenderer;
     _commandProvider     = commandProvider;
 }
Exemple #2
0
 public BuiltInPrimaryCommand(ICoconaConsoleProvider console, ICoconaCommandHelpProvider commandHelpProvider, ICoconaHelpRenderer helpRenderer, ICoconaCommandProvider commandProvider)
 {
     _console             = console;
     _commandHelpProvider = commandHelpProvider;
     _helpRenderer        = helpRenderer;
     _commandProvider     = commandProvider;
 }
 public BuiltInPrimaryCommand(ICoconaAppContextAccessor appContext, ICoconaConsoleProvider console, ICoconaCommandHelpProvider commandHelpProvider, ICoconaHelpRenderer helpRenderer, ICoconaCommandProvider commandProvider)
 {
     _appContext          = appContext;
     _console             = console;
     _commandHelpProvider = commandHelpProvider;
     _helpRenderer        = helpRenderer;
     _commandProvider     = commandProvider;
 }
Exemple #4
0
 public BuiltInCommandMiddleware(CommandDispatchDelegate next, ICoconaHelpRenderer helpRenderer, ICoconaCommandHelpProvider commandHelpProvider, ICoconaCommandProvider commandProvider, ICoconaConsoleProvider console)
     : base(next)
 {
     _helpRenderer        = helpRenderer;
     _commandHelpProvider = commandHelpProvider;
     _commandProvider     = commandProvider;
     _console             = console;
 }
 public ValueTask <int> ShowVersion(
     [FromService] ICoconaCommandHelpProvider commandHelpProvider,
     [FromService] ICoconaConsoleProvider console,
     [FromService] ICoconaHelpRenderer helpRenderer
     )
 {
     console.Output.Write(helpRenderer.Render(commandHelpProvider.CreateVersionHelp()));
     return(new ValueTask <int>(0));
 }
 public BuiltInCommandMiddleware(CommandDispatchDelegate next, ICoconaHelpRenderer helpRenderer, ICoconaCommandHelpProvider commandHelpProvider, ICoconaCommandProvider commandProvider, ICoconaConsoleProvider console, ICoconaAppContextAccessor appContext)
     : base(next)
 {
     _helpRenderer        = helpRenderer;
     _commandHelpProvider = commandHelpProvider;
     _commandProvider     = commandProvider;
     _console             = console;
     _appContext          = appContext;
 }