Browse Source

add list-colours command and edit error message in parseColour.

master
Craig Oates 6 years ago
parent
commit
413b443877
  1. 6
      SmoulderingBeachBallCLI/ConsoleCommands.fs
  2. 4
      SmoulderingBeachBallCLI/Validation.fs

6
SmoulderingBeachBallCLI/ConsoleCommands.fs

@ -29,3 +29,9 @@
showEndOfCommandMessage
let ``list-colours`` () =
printfn "[INFO.] Listing available colours..."
for item in colourList do
printfn "%s" item.Key
showEndOfCommandMessage

4
SmoulderingBeachBallCLI/Validation.fs

@ -1,4 +1,4 @@
module Validation
module internal Validation
open System.Drawing
open SmoulderingBeachBall.Domain.DomainTypes
@ -25,7 +25,7 @@
colourList
|> Map.find (colour.ToLower())
| false ->
invalidArg "Colour" "The colour specifed cannot is invalid."
invalidArg "Colour" "The colour specifed is invalid."
// "Please use the ListAvailableColours command for a list"?
let buildBasicSpec iWidth iHeight mainColour path =

Loading…
Cancel
Save