package spin

  1. Overview
  2. Docs
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.