Skip to content

Commit d09a185

Browse files
committed
change: Command_Init to create template also
1 parent a608826 commit d09a185

File tree

1 file changed

+7
-2
lines changed
  • NF.Tool.ReleaseNoteMaker/NF.Tool.ReleaseNoteMaker.CLI/Commands

1 file changed

+7
-2
lines changed

NF.Tool.ReleaseNoteMaker/NF.Tool.ReleaseNoteMaker.CLI/Commands/Command_Init.cs

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ public override Task<int> ExecuteAsync(CommandContext context, Settings setting)
2828
return Task.FromResult(1);
2929
}
3030

31-
string path = Utils.ExtractResourceToTempFilePath(Const.DEFAULT_CONFIG_FILENAME);
32-
File.Move(path, newConfigFilePath);
31+
string configFileTempPath = Utils.ExtractResourceToTempFilePath(Const.DEFAULT_CONFIG_FILENAME);
32+
File.Move(configFileTempPath, newConfigFilePath);
33+
34+
_ = Directory.CreateDirectory("ChangeLog.d");
35+
36+
string templateFileTempPath = Utils.ExtractResourceToTempFilePath(Const.DEFAULT_TEMPLATE_FILENAME);
37+
File.Move(templateFileTempPath, $"ChangeLog.d/{Const.DEFAULT_TEMPLATE_FILENAME}");
3338

3439
return Task.FromResult(0);
3540
}

0 commit comments

Comments
 (0)