package current

  1. Overview
  2. Docs

Each operation has a level, giving an estimate of the cost or risk of the operation. When testing a pipeline, it can be useful to set a maximum level, or to require confirmation for more risky operations.

type t =
  1. | Harmless
    (*

    e.g. reading from the local filesystem

    *)
  2. | Mostly_harmless
    (*

    e.g. performing a remote query

    *)
  3. | Average
    (*

    e.g. building a binary from source

    *)
  4. | Above_average
    (*

    e.g. sending a notification

    *)
  5. | Dangerous
    (*

    e.g. publishing a new release

    *)
val compare : t -> t -> Ppx_deriving_runtime.int
val values : t list

All the levels, from least to most dangerous.

val pp : t Fmt.t
val to_string : t -> string
val of_string : string -> (t, [> `Msg of string ]) result
OCaml

Innovation. Community. Security.