package spin

  1. Overview
  2. Docs
type string_cfg = {
  1. name : Base.string;
  2. prompt : Base.string;
  3. default : Base.string Base.option;
}
val string_cfg_of_sexp : Sexplib0.Sexp.t -> string_cfg
type list_cfg = {
  1. name : Base.string;
  2. prompt : Base.string;
  3. values : Base.string Base.list;
  4. default : Base.string Base.option;
}
val list_cfg_of_sexp : Sexplib0.Sexp.t -> list_cfg
type confirm_cfg = {
  1. name : Base.string;
  2. prompt : Base.string;
  3. default : Base.bool Base.option;
}
val confirm_cfg_of_sexp : Sexplib0.Sexp.t -> confirm_cfg
type t =
  1. | String of string_cfg
  2. | List of list_cfg
  3. | Confirm of confirm_cfg
val get_context_or_prompt : global_context:Global_context.t Base.option -> t Base.List.t -> (string * Jingoo.Jg_types.tvalue) list * t list
val prompt_config : ?use_defaults:bool -> t -> Base.string * Jingoo.Jg_types.tvalue
val apply_template_to_cst : t -> models:(Base.string * Jingoo.Jg_types.tvalue) Base.list -> t
val prompt_configs : ?use_defaults:bool -> ?global_context:Global_context.t Base.option -> t Base.list -> (Base.string * Jingoo.Jg_types.tvalue) Base.List.t
OCaml

Innovation. Community. Security.