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.0.tbz
sha256=99368bedae2b37dc243027c49b8465ea4891864cf01a193d6b99751458428443
sha512=55de0b9d973ac6de9586950b314ef2d396c52e8cc61427b48c9b65a25770305053a2c274497649e37cb1b8584f9b3a2d2b9b03427437344ca250649ab51dc3c6

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.