varcommand=newCommand("run","run the application")
{
CommonArguments.Path_Required,
};
// TODO: We'll need to support a --build-args
command.AddOption(newOption("--no-build")
{
Description="Do not build project files before running.",
Required=false
});
command.AddOption(newOption("--port")
{
Description="The port to run control plane on.",
Argument=newArgument<int>("port"),
Required=false
});
command.AddOption(newOption("--logs")
{
Description="Write structured application logs to the specified log providers. Supported providers are console, elastic (Elasticsearch), ai (ApplicationInsights), seq.",
Argument=newArgument<string>("logs"),
Required=false
});
command.AddOption(newOption("--dtrace")
{
Description="Write distributed traces to the specified providers. Supported providers are zipkin.",
Argument=newArgument<string>("logs"),
Required=false
});
command.AddOption(newOption("--debug")
{
Argument=newArgument<string[]>("service"),
Description="Wait for debugger attach to specific service. Specify \"*\" to wait for all services.",
Required=false
});
command.AddOption(newOption("--docker")
{
Description="Run projects as docker containers.",
Required=false
});
newOption("--no-build")
{
Description="Do not build project files before running.",
Required=false
},
newOption("--port")
{
Description="The port to run control plane on.",
Argument=newArgument<int?>("port"),
Required=false
},
newOption("--logs")
{
Description="Write structured application logs to the specified log provider. Supported providers are 'console', 'elastic' (Elasticsearch), 'ai' (ApplicationInsights), 'seq'.",
Argument=newArgument<string>("logs"),
Required=false
},
newOption("--dtrace")
{
Description="Write distributed traces to the specified tracing provider. Supported providers are 'zipkin'.",
Argument=newArgument<string>("trace"),
Required=false,
},
newOption("--metrics")
{
Description="Write metrics to the specified metrics provider.",
Argument=newArgument<string>("metrics"),
Required=false
},
newOption("--debug")
{
Argument=newArgument<string[]>("service")
{
Arity=ArgumentArity.ZeroOrMore,
},
Description="Wait for debugger attach to specific service. Specify \"*\" to wait for all services.",