package spin

  1. Overview
  2. Docs
type input_t = {
  1. message : string;
}
type select_t = {
  1. message : string;
  2. values : string list;
}
type confirm_t = {
  1. message : string;
}
type prompt =
  1. | Input of input_t
  2. | Select of select_t
  3. | Confirm of confirm_t
type rule = {
  1. message : Expr.t;
  2. expr : Expr.t;
}
type t = {
  1. name : string;
  2. prompt : prompt option;
  3. default : Expr.t option;
  4. rules : rule list;
  5. enabled_if : Expr.t option;
}
val decode_input : Sexplib0.Sexp.t -> (prompt, Spin__Decoder.error) Spin_std.Result.t
val decode_select : Sexplib0.Sexp.t -> (prompt, Spin__Decoder.error) Spin_std.Result.t
val decode_confirm : Sexplib0.Sexp.t -> (prompt, Spin__Decoder.error) Spin_std.Result.t
val decode_prompt : prompt option Decoder.t
val decode_rule : Sexplib.Sexp.t -> (rule, Decoder.error) result
OCaml

Innovation. Community. Security.