Browse Source

Stubbed out the public library functions.

Began basic "hooking up" of library to the command-methods.
master
Craig Oates 6 years ago
parent
commit
e7b875213d
  1. 5
      WetPancake/CoOrdinator.fs
  2. 12
      WetPancake/WetPancake.fs
  3. 2
      WetPancakeCLI/ConsoleCommands.cs

5
WetPancake/CoOrdinator.fs

@ -1,2 +1,7 @@
module internal CoOrdinator
let GenerateRandomText = 0;
let GenerateText gibberishLevel sentences = 0;
let GenerateTextFromFile gibberishLevel sentences path = 0

12
WetPancake/WetPancake.fs

@ -1,4 +1,12 @@
namespace WetPancake
type WetPancake() =
member this.X = "F#"
module PancakeWetter =
open CoOrdinator
let RequestRandomText = GenerateRandomText;
let RequestText (gibberishLevel: int) (sentences: int) = GenerateText gibberishLevel sentences
let RequestTextFromFile (gibberishLevel: int) (sentences: int) (filePath: string) =
GenerateTextFromFile gibberishLevel sentences filePath

2
WetPancakeCLI/ConsoleCommands.cs

@ -1,6 +1,7 @@
using Console.Waterworks;
using Console.Waterworks.Attributes;
using System;
using WetPancake;
using static System.Environment;
namespace WetPancakeCLI
@ -31,6 +32,7 @@ namespace WetPancakeCLI
[Usage("> GenerateRandomText")]
public static string GenerateRandomText(int sentences)
{
var result = PancakeWetter.RequestRandomText;
return "Not implemented yet.";
}
}

Loading…
Cancel
Save