|
|
|
@ -56,16 +56,16 @@ namespace WetPancakeCLI
|
|
|
|
|
if (string.IsNullOrWhiteSpace(filePath)) |
|
|
|
|
{ |
|
|
|
|
var desktopDirectory = GetFolderPath(SpecialFolder.Desktop); |
|
|
|
|
var savePath = $"{desktopDirectory}\\wet-pankcake-cheatsheet.pdf"; |
|
|
|
|
var savePath = $"{desktopDirectory}\\wet-pancake-quick-guide.pdf"; |
|
|
|
|
File.Copy(cheatsheetPath, savePath, true); |
|
|
|
|
return "Quick Guide written to desktop."; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
var customSavePath = $"{filePath}\\wet-pankcake-cheatsheet.pdf"; |
|
|
|
|
var customSavePath = $"{filePath}\\wet-pancake-quick-guide.pdf"; |
|
|
|
|
File.Copy(cheatsheetPath, customSavePath, true); |
|
|
|
|
if (!Directory.Exists(filePath)) throw new DirectoryNotFoundException(); |
|
|
|
|
return $"Quick Guide added to {filePath}"; |
|
|
|
|
return $"Quick Guide written to {filePath}"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -116,10 +116,7 @@ namespace WetPancakeCLI
|
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
WriteLine("Attempting to list out the available template files..."); |
|
|
|
|
var files = |
|
|
|
|
FSharpAsync.StartAsTask |
|
|
|
|
(RequestAllTemplateFilesAsync(), _taskCreationOptions, _cancellationToken).Result; |
|
|
|
|
foreach (var item in files) |
|
|
|
|
foreach (var item in RequestAllTemplateFiles()) |
|
|
|
|
{ |
|
|
|
|
WriteLine($"File path: {item}"); |
|
|
|
|
} |
|
|
|
|