package spin

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

Innovation. Community. Security.