Browse Source

Added attributes to request text from file command-method.

master
Craig Oates 6 years ago
parent
commit
48db020810
  1. 10
      WetPancakeCLI/ConsoleCommands.cs

10
WetPancakeCLI/ConsoleCommands.cs

@ -9,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.";
@ -38,7 +38,7 @@ namespace WetPancakeCLI
[ListCommand]
[Description ("Generates text using the gibberish level and number of sentences specified by the user.")]
[Parameters("gibberishLevel: int sentences: int")]
[Parameters("gibberish level: int, sentences: int")]
[Usage("> GenerateText 5 10")]
public static string GenerateText(int gibberishLevel, int sentences)
{
@ -46,7 +46,11 @@ namespace WetPancakeCLI
return result;
}
public static string TextFromFile(int gibberishLevel, int sentences, string filePath)
[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)
{
var result = RequestTextFromFile(gibberishLevel, sentences, filePath);
return result;

Loading…
Cancel
Save