|
|
|
@ -73,7 +73,9 @@ namespace WetPancakeCLI
|
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
WriteLine("Attempting to list out the available template files..."); |
|
|
|
|
var files = FSharpAsync.StartAsTask(RequestAllTemplateFilesAsync(), _taskCreationOptions, _cancellationToken).Result; |
|
|
|
|
var files = |
|
|
|
|
FSharpAsync.StartAsTask |
|
|
|
|
(RequestAllTemplateFilesAsync(), _taskCreationOptions, _cancellationToken).Result; |
|
|
|
|
foreach (var item in files) |
|
|
|
|
{ |
|
|
|
|
WriteLine($"File path: {item}"); |
|
|
|
@ -88,7 +90,9 @@ namespace WetPancakeCLI
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[ListCommand] |
|
|
|
|
[Description("Checks the text in the specified .txt file to see if it ")] |
|
|
|
|
[Description( |
|
|
|
|
"Checks the text in the specified .txt file to see if it is compatible with this program.\n" + |
|
|
|
|
"For a file to be compatible, it must be a .txt file and contain at least one '.', '!' or '?'.")] |
|
|
|
|
[Parameters("filePath: string")] |
|
|
|
|
[Usage("> ValidateFile \"C:/your-file.txt\"")] |
|
|
|
|
public static string ValidateFile(string filePath) |
|
|
|
|