package cmdlang-stdlib-runner

  1. Overview
  2. Docs
A basic execution runner for cmdlang based on stdlib.arg

Install

Dune Dependency

Authors

Maintainers

Sources

cmdlang-0.0.9.tbz
sha256=44fc0027cc27a8d6b511bbde81b0d31306ec1a3d599476d5bd058510f39e87ef
sha512=e1a18905ff6035eb4c44aed71df0e3d42b8277db9a6e98fe571a3b17428c9ef0a26006cb27b729a60208a8357398decc6a8601caca74dabd2e6de7636bc60b31

doc/cmdlang-stdlib-runner/Cmdlang_stdlib_runner/index.html

Module Cmdlang_stdlib_runnerSource

An execution engine for cmdlang based on stdlib.arg.

Sourceval run : 'a Cmdlang.Command.t -> 'a
Sourceval eval : 'a Cmdlang.Command.t -> argv:string array -> ('a, [ `Help of string | `Bad of string ]) Result.t
Sourceval eval_exit_code : unit Cmdlang.Command.t -> argv:string array -> int

Low level implementation

This modules should not be used directly by the users of the runner, but only through the run and eval functions. They are exposed if you want to re-use some existing code to build your own runner.

Sourcemodule Arg_runner : sig ... end

Internal representation used to run a parser.

Sourcemodule Arg_state : sig ... end

Internal representation for cmdlang arg expressions used during parsing.

Sourcemodule Command_selector : sig ... end

Selecting a command within a group hierarchy.

Sourcemodule Param_parser : sig ... end

Parsing parameters according to their specification.

Sourcemodule Parser_state : sig ... end

A mutable state that will collect parsing information.

Sourcemodule Positional_state : sig ... end

A mutable state that will collect parsing information for positional arguments.

OCaml

Innovation. Community. Security.