Initial setup

This commit is contained in:
Amer Koleci
2022-09-01 10:41:06 +02:00
commit 18e10653c0
16 changed files with 926 additions and 0 deletions

28
src/Generator/Program.cs Normal file
View File

@@ -0,0 +1,28 @@
// Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
namespace Generator;
public static class Program
{
public static int Main(string[] args)
{
string outputPath = AppContext.BaseDirectory;
if (args.Length > 0)
{
outputPath = args[0];
}
if (!Path.IsPathRooted(outputPath))
{
outputPath = Path.Combine(AppContext.BaseDirectory, outputPath);
}
if (!Directory.Exists(outputPath))
{
Directory.CreateDirectory(outputPath);
}
return 0;
}
}