コード例 #1
0
 public static Bootstrapper AddDelegateCommand <TSettings>(
     this Bootstrapper bootstrapper,
     string name,
     string description,
     Func <CommandContext, TSettings, int> func)
     where TSettings : CommandSettings =>
 bootstrapper.ConfigureCommands(x => x.AddDelegate(name, func).WithDescription(description));
コード例 #2
0
 public static Bootstrapper AddPipelineCommand(
     this Bootstrapper bootstrapper,
     string name,
     string description,
     bool defaultPipelines,
     params string[] pipelines) =>
 bootstrapper.ConfigureCommands(x => x.AddPipelineCommand(name, defaultPipelines, pipelines).WithDescription(description));
コード例 #3
0
 public static Bootstrapper AddDelegateCommand(
     this Bootstrapper bootstrapper,
     string name,
     string description,
     Func <CommandContext, int> func) =>
 bootstrapper.ConfigureCommands(x => x.AddDelegateCommand(name, func).WithDescription(description));
コード例 #4
0
 public static Bootstrapper AddDelegateCommand(
     this Bootstrapper bootstrapper,
     string name,
     Func <CommandContext, int> func) =>
 bootstrapper.ConfigureCommands(x => x.AddDelegateCommand(name, func));
コード例 #5
0
 public static Bootstrapper AddPipelineCommand(
     this Bootstrapper bootstrapper,
     string name,
     string description,
     EngineCommandSettings commandSettings) =>
 bootstrapper.ConfigureCommands(x => x.AddPipelineCommand(name, commandSettings).WithDescription(description));
コード例 #6
0
 public static Bootstrapper AddPipelineCommand(
     this Bootstrapper bootstrapper,
     string name,
     EngineCommandSettings commandSettings) =>
 bootstrapper.ConfigureCommands(x => x.AddPipelineCommand(name, commandSettings));
コード例 #7
0
 public static Bootstrapper AddPipelineCommand(
     this Bootstrapper bootstrapper,
     string name,
     params string[] pipelines) =>
 bootstrapper.ConfigureCommands(x => x.AddPipelineCommand(name, pipelines));
コード例 #8
0
 public static Bootstrapper AddCommand(this Bootstrapper bootstrapper, Type commandType, string name, string description) =>
 bootstrapper.ConfigureCommands(x => x.AddCommand(commandType, name).WithDescription(description));
コード例 #9
0
 public static Bootstrapper AddCommand(this Bootstrapper bootstrapper, Type commandType, string name) =>
 bootstrapper.ConfigureCommands(x => x.AddCommand(commandType, name));
コード例 #10
0
 public static Bootstrapper AddCommand <TCommand>(this Bootstrapper bootstrapper, string name)
     where TCommand : class, ICommand =>
 bootstrapper.ConfigureCommands(x => x.AddCommand <TCommand>(name));