forked from dotnet/templating
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
30 lines (26 loc) · 1.02 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.CommandLine;
using Microsoft.TemplateEngine.Authoring.CLI.Commands;
using Microsoft.TemplateEngine.Authoring.CLI.Commands.Verify;
namespace Microsoft.TemplateEngine.Authoring.CLI
{
internal sealed class Program
{
internal static Task<int> Main(string[] args)
{
RootCommand rootCommand = new("dotnet-template-authoring");
rootCommand.Subcommands.Add(new LocalizeCommand());
rootCommand.Subcommands.Add(new VerifyCommand());
rootCommand.Subcommands.Add(new ValidateCommand());
return GetCommandLineConfiguration(rootCommand).InvokeAsync(args);
}
internal static CommandLineConfiguration GetCommandLineConfiguration(Command command)
{
return new CommandLineConfiguration(command)
{
EnablePosixBundling = false
};
}
}
}