package spin

  1. Overview
  2. Docs
A project generator for Reason and OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

spin-0.6.0.tbz
sha256=2fea29779b8751651e101064affbfc482c62c68fc6672f28a314ae60f30c75c2
sha512=df00a63f6f12fe8ebd1626356741256f00c2c51878f227bca4243c83ff8dbbe1734fe7ce70d22ecb134968795e166ea5770fc038551f48fb6d510e52c3234c2e

doc/spin/Spin/Template/index.html

Module Spin.Template

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.