Files
WoofWare.Whippet/Plugins/InterfaceMock/WoofWare.Whippet.Plugin.InterfaceMock/DesiredGenerator.fs
Patrick Stevens 2789152331
Some checks are pending
.NET / build (Release) (push) Waiting to run
.NET / analyzers (push) Waiting to run
.NET / build (Debug) (push) Waiting to run
.NET / check-dotnet-format (push) Waiting to run
.NET / check-nix-format (push) Waiting to run
.NET / Check links (push) Waiting to run
.NET / Check flake (push) Waiting to run
.NET / nuget-pack (push) Waiting to run
.NET / expected-pack (push) Blocked by required conditions
.NET / check-accurate-generations (push) Waiting to run
.NET / all-required-checks-complete (push) Blocked by required conditions
.NET / nuget-publish (push) Blocked by required conditions
.NET / nuget-publish-fantomas (push) Blocked by required conditions
.NET / nuget-publish-json-plugin (push) Blocked by required conditions
.NET / nuget-publish-json-attrs (push) Blocked by required conditions
.NET / nuget-publish-argparser-plugin (push) Blocked by required conditions
.NET / nuget-publish-argparser-attrs (push) Blocked by required conditions
.NET / nuget-publish-httpclient-plugin (push) Blocked by required conditions
.NET / nuget-publish-httpclient-attrs (push) Blocked by required conditions
.NET / nuget-publish-interfacemock-plugin (push) Blocked by required conditions
Import interface-mock generator (#14)
2024-10-07 22:10:30 +01:00

12 lines
458 B
Forth

namespace WoofWare.Whippet.Plugin.InterfaceMock
type internal DesiredGenerator =
| InterfaceMock of isInternal : bool option
static member Parse (s : string) =
match s with
| "InterfaceMock" -> DesiredGenerator.InterfaceMock None |> Some
| "InterfaceMock(true)" -> DesiredGenerator.InterfaceMock (Some true) |> Some
| "InterfaceMock(false)" -> DesiredGenerator.InterfaceMock (Some false) |> Some
| _ -> None