The purpose of this repository is to provide a way for people to create placeholder images quickly. https://www.craigoates.net/Software/project/11
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

namespace Commands
module ConsoleCommands =
open System
open Console.Waterworks
open SmoulderingBeachBall.Domain
open SmoulderingBeachBall.Services
open Validation
open System.Drawing
let showEndOfCommandMessage = "[INFO.] Execution completed."
let test () = "Smouldering Beach Ball CLI seems to be working."
let exit () = Environment.Exit (Environment.ExitCode)
let ``draw-image`` imgWidth imgHeight mainColour path =
buildBasicSpec imgWidth imgHeight mainColour path
|> makeImage
|> Async.RunSynchronously
showEndOfCommandMessage
let ``draw-borderedImage`` () =
showEndOfCommandMessage
let ``draw-overlayedImage`` () =
showEndOfCommandMessage
let ``list-colours`` () =
printfn "[INFO.] Listing available colours..."
for item in colourList do
printfn "%s" item.Key
showEndOfCommandMessage