Make.Command
module Conn : Irmin_server.Conn.S
module Store = Store
Irmin Store
type
module Tree :
Irmin_server.Tree.S
with type kinded_key = Store.Tree.kinded_key
and type concrete = Store.Tree.concrete
Tree
wraps Store.Tree
to avoid encoding/decoding trees more than needed
module Commit : sig ... end
Commits
module Server_info : sig ... end
Used to track information about the server
type context = {
conn : Conn.t;
config : Irmin.Backend.Conf.t;
repo : Store.Repo.t;
mutable watch : Store.watch option;
mutable branch_watch : Store.Backend.Branch.watch option;
}
context
is passed to every command as the first argument
module type CMD = sig ... end
type t = (module CMD)
Command type
val name : t -> string
Get the name of a command
val of_name : string -> t
Find a command by name, the name should be lowercase
val commands : (string * t) list
A list of all registered commands
module Commands : sig ... end