package spin

  1. Overview
  2. Docs
type input_t = {
  1. message : Spin_std.string;
}
type select_t = {
  1. message : Spin_std.string;
  2. values : Spin_std.string Spin_std.list;
}
type confirm_t = {
  1. message : Spin_std.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 : Spin_std.string;
  2. prompt : prompt Spin_std.option;
  3. default : Expr.t Spin_std.option;
  4. rules : rule Spin_std.list;
  5. enabled_if : Expr.t Spin_std.option;
}
val decode_input : Spin_std.Sexp.t -> (prompt, Spin__Decoder.error) Spin_std.Result.t
val decode_select : Spin_std.Sexp.t -> (prompt, Spin__Decoder.error) Spin_std.Result.t
val decode_confirm : Spin_std.Sexp.t -> (prompt, Spin__Decoder.error) Spin_std.Result.t
val decode_prompt : prompt Spin_std.option Decoder.t
OCaml

Innovation. Community. Security.