public CommandInput(ILogger <CommandInput> logger, IServiceProvider provider, IRunningCommand runningCommand, string name) { _provider = provider; _runningCommand = runningCommand; _logger = logger; _cmdBuilder = new CommandLineBuilder(new Command(name)); }
public BaseCommand(string name, string description, bool longRunning = false) { if (string.IsNullOrWhiteSpace(name)) { throw new System.ArgumentException($"Command name can not have white space.", nameof(name)); } _command = new Command(name, description); if (longRunning) { _loadingService = new RunningCommand(); } Handle(); }