|
|
|
@ -1,8 +1,7 @@
|
|
|
|
|
using Console.Waterworks; |
|
|
|
|
using Console.Waterworks.Attributes; |
|
|
|
|
using System; |
|
|
|
|
using WetPancake; |
|
|
|
|
//using WetPancake; |
|
|
|
|
using static WetPancake.Pancake; |
|
|
|
|
using static System.Environment; |
|
|
|
|
|
|
|
|
|
namespace WetPancakeCLI |
|
|
|
@ -10,7 +9,7 @@ namespace WetPancakeCLI
|
|
|
|
|
public static class ConsoleCommands |
|
|
|
|
{ |
|
|
|
|
[ListCommand] |
|
|
|
|
[Description("Prints a test messge to the console.")] |
|
|
|
|
[Description("Prints a test message to the console.")] |
|
|
|
|
[Parameters("none")] |
|
|
|
|
[Usage("> Test")] |
|
|
|
|
public static string Test() => "SUCCESS: Console.Waterworks is wired into Wet Pancake CLI."; |
|
|
|
@ -28,18 +27,33 @@ namespace WetPancakeCLI
|
|
|
|
|
public static void Exit() => Environment.Exit(ExitCode); |
|
|
|
|
|
|
|
|
|
[ListCommand] |
|
|
|
|
[Description("Generates random text, the number of sentences generated is determined by the user.")] |
|
|
|
|
[Parameters("int: sentenences")] |
|
|
|
|
[Description("Generates random text, the number of sentences generated is randomly determined.")] |
|
|
|
|
[Parameters("none")] |
|
|
|
|
[Usage("> GenerateRandomText")] |
|
|
|
|
public static string GenerateRandomText(int sentences) |
|
|
|
|
public static string GenerateRandomText() |
|
|
|
|
{ |
|
|
|
|
var result = RequestRandomText(); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[ListCommand] |
|
|
|
|
[Description ("Generates text using the gibberish level and number of sentences specified by the user.")] |
|
|
|
|
[Parameters("gibberish level: int, sentences: int")] |
|
|
|
|
[Usage("> GenerateText 5 10")] |
|
|
|
|
public static string GenerateText(int gibberishLevel, int sentences) |
|
|
|
|
{ |
|
|
|
|
var result = Pancake.RequestRandomText; |
|
|
|
|
var result = RequestText(gibberishLevel, sentences); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static string test1() |
|
|
|
|
[ListCommand] |
|
|
|
|
[Description("Loads the specified .txt file and generates text based on it using the gibberish level and number of sentences specified by the user.")] |
|
|
|
|
[Parameters("gibberish level: int, sentences: int, file path: string")] |
|
|
|
|
[Usage("> RequestTextFromFile 3 6 C:/yourfile.txt")] |
|
|
|
|
public static string RequestTextFromFile(int gibberishLevel, int sentences, string filePath) |
|
|
|
|
{ |
|
|
|
|
return "This is a test method for quickly testing things out"; |
|
|
|
|
var result = RequestTextFromFile(gibberishLevel, sentences, filePath); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|