private static int RunCreate(CreateOptions options)
{
var projectPath = string.Empty;
if (string.IsNullOrEmpty(options.Project))
{
projectPath = Directory.GetCurrentDirectory();
options.Project = Path.GetFileNameWithoutExtension(projectPath);
}
else
{
projectPath = Path.Combine(Directory.GetCurrentDirectory(), options.Project);
}
if (!Directory.Exists(projectPath))
{
Directory.CreateDirectory(projectPath);
}
throw new NotImplementedException();
var project = CPlusPlusProject.Create(null, projectPath, options.Project);
if (project != null)
{
Console.WriteLine("Project created successfully.");
return 1;
}
Console.WriteLine("Unable to create project. May already exist.");
return -1;
}