package dockerfile-opam

  1. Overview
  2. Docs

Command-line helper functions for scripts using Dockerfile_opam

val cmd : name:string -> version:string -> summary:string -> manual:string -> default_dir:string -> generate:(opam_version:string -> output_dir:string -> 'a) -> 'a Cmdliner.Term.t * Cmdliner.Term.info

This generate a Cmdliner term with various defaults filled in for the manual page, and a default term that specifies an output directory.

val run : ('a Cmdliner.Term.t * Cmdliner.Term.info) -> 'b

run executes the term that results from cmd and returns with a non-zero exit code if there is an error.

OCaml

Innovation. Community. Security.