using System.IO; using System; using System.CommandLine; using System.Threading.Tasks; using MCCFMD.Commands; namespace MCCFMD { internal class Program { // See: https://docs.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates static async Task 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); } } }