2022-05-19 03:06:39 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System;
|
|
|
|
|
using System.CommandLine;
|
|
|
|
|
using System.Threading.Tasks;
|
2022-05-19 03:12:43 +00:00
|
|
|
|
using CFUtils.Commands;
|
2022-05-19 03:06:39 +00:00
|
|
|
|
|
2022-05-19 03:12:43 +00:00
|
|
|
|
namespace CFUtils
|
2022-05-19 03:06:39 +00:00
|
|
|
|
{
|
|
|
|
|
internal class Program
|
|
|
|
|
{
|
|
|
|
|
// See: https://docs.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates
|
|
|
|
|
static async Task<int> Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
DirectoryInfo workspace = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()));
|
|
|
|
|
Directory.CreateDirectory(workspace.FullName);
|
|
|
|
|
RootCommand rootCmd = new RootCommand("CLI utility for creating, editing, and installing Curseforge profiles.");
|
|
|
|
|
rootCmd.Add(new Install(workspace));
|
|
|
|
|
return await rootCmd.InvokeAsync(args);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|