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/Global_context/index.html

Module Spin.Global_context

type t = {
  1. name : Base.string Base.option;
  2. email : Base.string Base.option;
  3. github_username : Base.string Base.option;
  4. npm_username : Base.string Base.option;
}

Global_context represents the user global configuration.

We encapsulate the Config_file.User module because the we don't want to have dependencies between the config file modules.

type field =
  1. | Name
  2. | Email
  3. | Github_username
  4. | Npm_username
val make : ?name:Base.string -> ?email:Base.string -> ?github_username:Base.string -> ?npm_username:Base.string -> unit -> t
val opt_value : default:Base.string -> t Base.option -> field -> Base.string
OCaml

Innovation. Community. Security.