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); }
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());
public static Bootstrapper AddCommands <TParent>(this Bootstrapper bootstrapper) => bootstrapper.AddCommands(typeof(TParent));