From 55ea5c255ba986438db93d6ede6fb1b234c93ea3 Mon Sep 17 00:00:00 2001 From: "HOT-ROD\\craig" Date: Fri, 10 Aug 2018 00:38:45 +0100 Subject: [PATCH] Add copy QuickGuide file to custom file functionality. --- WetPancakeCLI/ConsoleCommands.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/WetPancakeCLI/ConsoleCommands.cs b/WetPancakeCLI/ConsoleCommands.cs index e78a0aa..7187271 100644 --- a/WetPancakeCLI/ConsoleCommands.cs +++ b/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}"; }