public ConsoleCommand(string key, string description, ConsoleProcess process, ConsoleOptions options, Func <bool> requires = null) : this(new[] { key }, description, process, options, requires) { }
public ConsoleCommand(IEnumerable <string> keys, string description, ConsoleProcess process, ConsoleOptions options, Func <bool> requires = null) : this(keys, description, ConvertProcess(process, options), requires) { }
private static Func <Task> ConvertProcess(ConsoleProcess process, ConsoleOptions options) { return(process == null ? (Func <Task>)null : (() => process.RunAsync(options))); }