Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
29 lines
731 B
C#
29 lines
731 B
C#
// Composition root for Linux and Docker (spec §5, §11).
|
|
using Febe.Server;
|
|
|
|
Console.OutputEncoding = System.Text.Encoding.UTF8;
|
|
|
|
if (SimulateCommand.Matches(args))
|
|
{
|
|
return await SimulateCommand.RunAsync(args, Console.Out, Console.Error);
|
|
}
|
|
|
|
if (DemoCommand.Matches(args))
|
|
{
|
|
return await DemoCommand.RunAsync(args, Console.Out, Console.Error);
|
|
}
|
|
|
|
if (HealthCheckCommand.Matches(args))
|
|
{
|
|
return await HealthCheckCommand.RunAsync(Environment.GetEnvironmentVariable, Console.Out);
|
|
}
|
|
|
|
if (args.Any(a => a is "--aiuto" or "--help" or "-h"))
|
|
{
|
|
Console.WriteLine(ServerCommand.Usage);
|
|
return 0;
|
|
}
|
|
|
|
// Default: the real server (Docker edition).
|
|
return await ServerCommand.RunAsync(args, Console.Out, Console.Error);
|