package spin

  1. Overview
  2. Docs
Project scaffolding tool and set of templates for Reason and OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

spin-0.5.1.tbz
sha256=63f80ce6baa89438f3b5b5f0a07fe8ec3648a0af2116f64d1ced0a55e1db1452
sha512=15df032c37f5bebab26e36b732c8c4fd5e63ade258a4c045e601f61fe142c01757e83a3903e76114e606ef7aea0bb46f998f98bf94dde40c07168cf5e009be22

doc/spin.lib/Spin/Prompt_cfg/index.html

Module Spin.Prompt_cfg

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.