예제 #1
0
        public static EmdlProject InitNew()
        {
            var proj = new EmdlProject("", "", Directory.GetCurrentDirectory(), Directory.GetCurrentDirectory() + "\\output\\");

            File.WriteAllLines("emdlconfig.json", new[] { proj.ToJson() });


            return(proj);
        }
예제 #2
0
        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;
            }
        }