package spin

  1. Overview
  2. Docs
type source =
  1. | Git of Spin_std.string
  2. | Local_dir of Spin_std.string
  3. | Official of (module Spin_template.Template)
type example_command = {
  1. name : Spin_std.string;
  2. description : Spin_std.string;
}
type t = {
  1. name : Spin_std.string;
  2. description : Spin_std.string;
  3. files : (Spin_std.string, Spin_std.string) Spin_std.Hashtbl.t;
  4. context : (Spin_std.string, Spin_std.string) Spin_std.Hashtbl.t;
  5. pre_gen_actions : Template_actions.t Spin_std.list;
  6. post_gen_actions : Template_actions.t Spin_std.list;
  7. example_commands : example_command Spin_std.list;
  8. source : source;
  9. generators : (Spin_std.string, Spin_std.unit -> (Template_generator.t, Spin_error.t) Lwt_result.t) Spin_std.Hashtbl.t;
}
val source_of_string : Spin_std.string -> source Spin_std.Option.t
val source_to_dec : source -> Dec_common.Source.t
val read_source_spin_file : ?download_git:Spin_std.bool -> source -> (Dec_template.t, Spin_error.t) Lwt_result.t
val read_source_template_files : ?download_git:Spin_std.bool -> source -> ((Spin_std.string, Spin_std.string) Spin_std.Hashtbl.t, Spin_error.t) Lwt_result.t
val of_dec : ?use_defaults:Spin_std.bool -> ?files:(Spin_std.string, Spin_std.string) Spin_std.Hashtbl.t -> ?ignore_configs:Spin_std.bool -> ?ignore_actions:Spin_std.bool -> ?ignore_example_commands:Spin_std.bool -> ?ignore_generators:Spin_std.bool -> source:source -> context:(Spin_std.string, Spin_std.string) Spin_std.Hashtbl.t -> Dec_template.t -> (t, Spin_error.t) Lwt_result.t
val read : ?use_defaults:Spin_std.bool -> ?ignore_configs:Spin_std.bool -> ?ignore_actions:Spin_std.bool -> ?ignore_example_commands:Spin_std.bool -> ?ignore_generators:Spin_std.bool -> ?context:(Spin_std.string, Spin_std.string) Spin_std.Hashtbl.t -> source -> (t, Spin_error.t) Lwt_result.t
val generate : path:Spin_std.string -> t -> (Spin_std.unit, Spin_error.t) Lwt_result.t
OCaml

Innovation. Community. Security.