Lookig for older versions of the documentation, pre FAKE v6? See
v5.fake.build
This module contains helpers for managing build time variables
FakeVar.define name
string
(unit -> 'a option) * (unit -> unit) * ('a -> unit)
Define a named FakeVar providing the get, remove and set And of the functions will fail if there is no context
The name of the FakeVar
FakeVar.defineAllowNoContext name
Define a named FakeVar providing the get, remove and set Will use a local variable if there is no context
FakeVar.defineOrNone name
Define a named FakeVar providing the get, remove and set Will always return 'None' when no context is set and 'throw' on set
FakeVar.get name
'a option
Gets a strongly typed FakeVar by name returning an option type
FakeVar.getOrDefault name defaultValue
'a
Gets a strongly typed FakeVar by name will return default value if variable is not found
The default value to return if variable is not found
FakeVar.getOrFail name
Gets a strongly typed FakeVar by name will fail if variable is not found
FakeVar.remove name
Removes a FakeVar by name
FakeVar.set name v
Sets value of a FakeVar
The value of the FakeVar