Exemple #1
0
 public void Configure(CliApplicationBuilder app)
 {
     app.AddCommandsFromThisAssembly()
     .AddCommand <PipelineCommand>()
     .AddCommand <ServicesCommand>()
     .AddDirective <PreviewDirective>();
 }
Exemple #2
0
 public void Configure(CliApplicationBuilder app)
 {
     app.AddCommandsFromThisAssembly()
     .AddCommand <PipelineCommand>()
     .AddCommand <ServicesCommand>()
     .AddDirectivesFromThisAssembly()
     .AddDirective <PreviewDirective>()
     .UseMiddleware <ExecutionTimingMiddleware>()
     .UseInteractiveMode(options: (cfg) => cfg.IsAdvancedInputAvailable = false);
 }
Exemple #3
0
        public void Configure(CliApplicationBuilder app)
        {
            ValidatorOptions.Global.LanguageManager.Enabled = false;

            app.AddCommandsFromThisAssembly()
            .AddDirective <PreviewDirective>()
            .AddCommand <PipelineCommand>()
            .AddCommand <ServicesCommand>()
            .UseMiddleware <FluentValidationMiddleware>();
        }
Exemple #4
0
 public void Configure(CliApplicationBuilder app)
 {
     app.AddCommandsFromThisAssembly()
     .AddDirective <DebugDirective>()
     .UseInteractiveMode(useAdvancedInput: false);
 }