Skip to content

Commit

Permalink
Simplify output log
Browse files Browse the repository at this point in the history
  • Loading branch information
liamwang committed Oct 24, 2017
1 parent 951526a commit 02f42fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions RenameTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ static void Main(string[] args)
srcProjectName = CmdReader.ReadLine("请输入原项目名称:");
newProjectName = CmdReader.ReadLine("请输入新项目名称:");

Console.WriteLine("正在处理...");

replaceRegex = new Regex(
srcProjectName,
RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.Compiled);
Expand All @@ -37,8 +39,8 @@ static void Main(string[] args)

Replace(srcProjectPath);

Console.WriteLine($"操作完成\r\n新的项目保存在:{newProjectPath}");
Console.Write($"请按任意键退出!");
Console.WriteLine($"完成\r\n新的项目保存在:{newProjectPath}");
Console.Write("请按任意键退出!");
Console.ReadKey();
}

Expand Down Expand Up @@ -67,7 +69,7 @@ static void Replace(string srcDirectory)

static void ReplaceFile(string srcFile, string destFile)
{
Console.WriteLine($"From:{srcFile}\r\nTo:{destFile}");
// Console.WriteLine($"From:{srcFile}\r\nTo:{destFile}");

Directory.CreateDirectory(Path.GetDirectoryName(destFile));

Expand Down

0 comments on commit 02f42fa

Please sign in to comment.