Browse Source

Add copy QuickGuide file to custom file functionality.

master
Craig Oates 6 years ago
parent
commit
55ea5c255b
  1. 6
      WetPancakeCLI/ConsoleCommands.cs

6
WetPancakeCLI/ConsoleCommands.cs

@ -44,6 +44,9 @@ namespace WetPancakeCLI
"QuickGuide")]
public static string QuickGuide(string filePath = "")
{
// TODO Create cheat-sheet comand-method.
// TODO Rename cheat-sheet-pdf to quick-guide.
// TODO Add new cheat-sheet
WriteLine("Attempting to write the Wet Pancake CLI Quick Guide...");
try
{
@ -59,7 +62,8 @@ namespace WetPancakeCLI
}
else
{
// TODO; Finish Quick Guide command-method.
var customSavePath = $"{filePath}\\wet-pankcake-cheatsheet.pdf";
File.Copy(cheatsheetPath, customSavePath, true);
if (!Directory.Exists(filePath)) throw new DirectoryNotFoundException();
return $"Quick Guide added to {filePath}";
}

Loading…
Cancel
Save