Browse Source

Setup script to access the various parts of the library.

Can test in here again.
master
Craig Oates 6 years ago
parent
commit
9ffe49cb11
  1. 10
      WetPancake/ProductServices.fs
  2. 9
      WetPancake/Script.fsx
  3. 4
      WetPancakeCLI/ConsoleCommands.cs

10
WetPancake/ProductServices.fs

@ -1,9 +1,9 @@
namespace WetPancake
(*
module Pancake
module Pancake =
//let RequestRandomText
//let RequestRandomText =
//let RequestText (gibberishLevel: int) (sentences: int)
//let RequestText (gibberishLevel: int) (sentences: int) =
//let RequestTextFromFile (gibberishLevel: int) (sentences: int) (filePath: string) =
//let RequestTextFromFile (gibberishLevel: int) (sentences: int) (filePath: string)*)

9
WetPancake/Script.fsx

@ -1,4 +1,13 @@
// Learn more about F# at http://fsharp.org
// See the 'F# Tutorial' project for more help.
#load "SystemServices.fs"
#load "DataAccess.fs"
#load "DataCleaning.fs"
#load "DataProcessing.fs"
#load "DataStructuring.fs"
#load "DataServices.fs"
#load "ProductServices.fs"
open SystemServices
let number = PickRandomNumber 10

4
WetPancakeCLI/ConsoleCommands.cs

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

Loading…
Cancel
Save