-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
19 lines (17 loc) · 787 Bytes
/
Copy pathProgram.cs
File metadata and controls
19 lines (17 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using ECF;
using Microsoft.Extensions.DependencyInjection;
await new ECFHostBuilder()
#if CI_Pipeline
.UseSingleCommand<Example.Commands.TestProgressBar_Asynchronous>()
#else
.UseDefaultCommands() // register all commands with CommandAttribute and default commands (help, exit, ...)
#endif
.AddConfiguration(optional: true) // adds appsettings.json
.Configure((ctx, services, _) =>
{
ctx.Intro = $"This is example console application based on ECF. Version {typeof(Program).Assembly.GetName().Version}.\nType help to list available commands";
ctx.HelpIntro = "Welcome to example program that showcases ECF framework. Enter one of command listed below";
ctx.Prefix = "> ";
services.AddHttpClient();
})
.RunAsync(args);