package bistro

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Bistro.Template_dslSource

Representation of scripts

Sourcetype template
Sourceval dest : template

Symbol representing the location where a workflow is expected to produce its result

Sourceval tmp : template

Symbol representing an existing empty directory that can be used as a temporary space for a workflow's execution.

Symbol representing the number of cores allocated to the workflow

Sourceval mem : template

Symbol representing the memory size allocated to the workflow, in GB.

Sourceval string : string -> template

A chunk of text

Sourceval int : int -> template

Int formatting

Sourceval float : float -> template

Float formatting

dep w is interpreted as the path where to find the result of workflow w

Sourceval deps : ?quote:char -> sep:string -> _ path list workflow -> template
Sourceval string_dep : string workflow -> template

string_dep w is interpreted as the result of workflow w

Sourceval int_dep : int workflow -> template

int_dep w is interpreted as result of workflow w

Sourceval quote : ?using:char -> template -> template

quote ~using:c t surrounds template t with character c

Sourceval option : ('a -> template) -> 'a option -> template

option f o is f x if o = Some x and string "" otherwise

Sourceval list : ('a -> template) -> ?sep:string -> 'a list -> template

list combinator, optional value of sep is ","

Sourceval seq : ?sep:string -> template list -> template

another list combinator, default value for sep is ""

Sourceval enum : ('a * string) list -> 'a -> template

combinator for enumerations

Sourceval file_dump : template -> template

file_dump t can be used when a command needs a configuration script: at run-time, it will generate a text using t, save it to a path, deterministically chosen as a function of t. Finally the template file_dump t is interpreted as this path.

OCaml

Innovation. Community. Security.