package irmin-cli

  1. Overview
  2. Docs

Module Irmin_cli.ResolverSource

Irmin store resolver.

Sourceval global_option_section : string
Sourceval branch : string option Cmdliner.Term.t
Sourcemodule Hash : sig ... end
Sourcetype hash = Hash.t
Sourcemodule Contents : sig ... end
Sourcetype contents = Contents.t

Global Configuration

Sourcemodule Store : sig ... end

Stores

Sourceval load_config : ?plugin:string -> ?root:string -> ?config_path:string -> ?store:string -> ?hash:hash -> ?contents:string -> unit -> Store.t * Irmin.config

Load config file from disk

plugin is the path to an OCaml plugin in cmxs format to be loaded at runtime

config_path can be used to specify the location of a configuration file.

root is used to specify the path of the store.

The values provided for store, hash and contents will be used by default if no other value is found in the config file

Sourcetype store =
  1. | S : 'a Store.Impl.t * 'a Lwt.t * Store.remote_fn option -> store
Sourceval store : unit -> store Cmdliner.Term.t

Parse the command-line arguments and then the config file.

Sourcetype Irmin.remote +=
  1. | R of Cohttp.Header.t option * string
Sourceval remote : unit -> (store * Irmin.remote Lwt.t) Cmdliner.Term.t

Parse a remote store location.