Example #1
0
 public static Bootstrapper AddBuildCommands(this Bootstrapper bootstrapper)
 {
     _ = bootstrapper ?? throw new ArgumentNullException(nameof(bootstrapper));
     bootstrapper.SetDefaultCommand <PipelinesCommand <PipelinesCommandSettings> >();
     bootstrapper.AddCommand <PipelinesCommand <PipelinesCommandSettings> >();
     bootstrapper.AddCommand <DeployCommand>();
     bootstrapper.AddCommands();
     return(bootstrapper);
 }
Example #2
0
 public static Bootstrapper AddCustomCommands(this Bootstrapper bootstrapper) => bootstrapper.AddCommands();
 /// <summary>
 /// Adds all commands that implement <see cref="ICommand"/> from the entry assembly.
 /// </summary>
 /// <param name="bootstrapper">The bootstrapper.</param>
 /// <returns>The current bootstrapper.</returns>
 public static Bootstrapper AddCommands(this Bootstrapper bootstrapper) => bootstrapper.AddCommands(Assembly.GetEntryAssembly());
Example #4
0
 public static Bootstrapper AddCommands <TParent>(this Bootstrapper bootstrapper) => bootstrapper.AddCommands(typeof(TParent));