FsMake


MakeBuilders Module

Auto-opened module containing functions for using Make computation expressions.

Functions and values

Function or value Description

make

Full Usage: make

Returns: Builder

Creates a Make using a Builder computation expression.

Returns: Builder
Example

 let newMake =
     make {
         let ctx = Make.context
         printfn "%s" ctx.StepName
     }

memo

Full Usage: memo

Returns: MemoBuilder

Creates a single access memo Make using a MemoBuilder computation expression.

Once a memo has run, it will return the same value without running again.

Returns: MemoBuilder
Example

 let versionMake =
     memo {
         return! Cmd.createWithArgs "dotnet" [ "gitversion" ] |> Cmd.result
     }

memoRace

Full Usage: memoRace

Returns: MemoRaceBuilder

Creates a parallel access memo Make using a MemoRaceBuilder computation expression.

Once a memoRace has run, it will return the same value without running again.

Returns: MemoRaceBuilder
Example

 let versionMake =
     memoRace {
         return! Cmd.createWithArgs "dotnet" [ "gitversion" ] |> Cmd.result
     }

retry attempts

Full Usage: retry attempts

Parameters:
    attempts : int

Returns: RetryBuilder

Creates a retry Make using a RetryBuilder computation expression.

attempts : int
Returns: RetryBuilder
Example

 let test =
     Step.create "test" {
         do! retry 2 {
             do! Cmd.createWithArgs "dotnet" [ "test" ] |> Cmd.run
         }
     }