Esempio n. 1
0
        public static async Task RemoveProject(string companyName, MicroServiceEntity entity)
        {
            var path = await GoFilePaths.GetProjectPath(companyName, entity.Name);

            if (Directory.Exists(path))
            {
                DeleteHelper.DeleteDirectory(path);
            }
        }
Esempio n. 2
0
        public static async Task Generate(string companyName, MicroServiceEntity entity)
        {
            var newProjectDir = await GoFilePaths.GetProjectPath(companyName, entity.Name);

            if (!Directory.Exists(newProjectDir))
            {
                Directory.CreateDirectory(newProjectDir);
            }

            await GoFileGenerator.GenerateHealthcheckFile(newProjectDir, "healthCheck");

            await GoFileGenerator.GenerateMainFile(newProjectDir, "localhost", "3000");
        }