package spin
Module Spin.TemplateSource
Source
type source = | Git of string| Local_dir of string| Official of (module Spin_template.Template)
Source
type t = {name : string;description : string;raw_files : string list;parse_binaries : bool;files : (string, string) Spin_std.Hashtbl.t;context : (string, string) Spin_std.Hashtbl.t;pre_gen_actions : Template_actions.t list;post_gen_actions : Template_actions.t list;example_commands : example_command list;source : source;
}Source
val read_source_spin_file :
?download_git:bool ->
source ->
(Dec_template.t, Spin_error.t) Spin_std.Result.tSource
val read_source_template_files :
?download_git:bool ->
source ->
((string, string) Spin_std.Hashtbl.t, Spin_error.t) Spin_std.Result.tSource
val read :
?use_defaults:bool ->
?context:(string, string) Spin_std.Hashtbl.t ->
source ->
(t, Spin_error.t) Spin_std.Result.t