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

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