public static EmdlProject InitNew() { var proj = new EmdlProject("", "", Directory.GetCurrentDirectory(), Directory.GetCurrentDirectory() + "\\output\\"); File.WriteAllLines("emdlconfig.json", new[] { proj.ToJson() }); return(proj); }
static void ValidateArg(string arg) { switch (arg) { case "init": Console.WriteLine("Creating new Emdl project"); Project = EmdlProject.InitNew(); break; case "build": Console.WriteLine("building project"); Project = EmdlProject.Load(); Project.Build(); break; default: Console.WriteLine($"{arg} not recognized"); break; } }