Module Irmin_unix.Cli

CLI commands.

type command = unit Cmdliner.Term.t * Cmdliner.Term.info

Cmdliner commands.

val default : command

The default command: show a summary of the commands.

val commands : command list

List of available sub-commands.

val run : default:command -> command list -> unit

Create a command-line tool with the given subcommands.

Command-builder helper

type sub = {
name : string;
doc : string;
man : Cmdliner.Manpage.block list;
term : unit Cmdliner.Term.t;
}

Subcommand.

val create_command : sub -> command

Build a subcommand.