Skip to content

FableCli

type FableCli =
    | FetchedFable of version: string
    | NamedFable of tool: string * expected: string option
AssemblyNacara.Plugin.LiveExample

Which Fable precompiles a library, and how it is started.

A precompiled library is only readable by the Fable that wrote it, so the default fetches the one the browser's compiler was built from rather than trusting whatever is installed.

A site that names its own is then the one keeping the two in step, and is told when they have drifted.

Cases

FetchedFable of version: string

Fetched from NuGet by dnx, at the version the browser's compiler was built from.

NamedFable of tool: string * expected: string option

A CLI the site named, and the version it ought to be.

Properties

member Describe: string

What it is, for a log line.

member Identity: string

What distinguishes one Fable's output from another's, for the cache.

member IsFetchedFable: bool
member IsNamedFable: bool