Logo fantomas

FantomasToolLocator Module

Functions and values

Function or value Description

createFor startInfo

Full Usage: createFor startInfo

Parameters:
Returns: Result<RunningFantomasTool, ProcessStartError>

Start the daemon without knowing which version it is, which asks for it the way every version understands. Prefer `createForVersion` where the version is in hand.

startInfo : FantomasToolStartInfo
Returns: Result<RunningFantomasTool, ProcessStartError>

createForVersion version startInfo

Full Usage: createForVersion version startInfo

Parameters:
Returns: Result<RunningFantomasTool, ProcessStartError>

Start the daemon, asking for it the way the version found spells it.

version : FantomasVersion
startInfo : FantomasToolStartInfo
Returns: Result<RunningFantomasTool, ProcessStartError>

daemonArgument version

Full Usage: daemonArgument version

Parameters:
Returns: string

How this version of Fantomas wants its daemon asked for. `fantomas daemon` from 8.0, and `fantomas --daemon` for everything before it, which every version understands and always will.

version : FantomasVersion
Returns: string

findFantomasTool workingDir

Full Usage: findFantomasTool workingDir

Parameters:
Returns: Result<FantomasToolFound, FantomasToolError>

Type something to start searching.