package cmdtui

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

cmdtui — interactive command completion and execution for building REPLs

v0.3.0

cmdtui is a module for declaring commands with completions and actions. It can return a dynamically generated list of completions based on partial user input. The base module doesn't depend on a particular terminal control library, and support for lambda-term based REPLs is provided in the cmdtui.lambda-term subpackage.

cmdtui is distributed under the ISC license.

Homepage: https://gitlab.com/edwintorok/cmdtui

Installation

cmdtui can be installed with opam:

opam install cmdtui

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation and API reference is automatically generated by from the source interfaces. It can be consulted online or via odig doc cmdtui.

Sample programs

If you installed cmdtui with opam sample programs are located in the directory opam config var cmdtui:doc.

In the distribution sample programs and tests are located in the test directory of the distribution. They can be built and run with:

topkg build --tests true && topkg test 
OCaml

Innovation. Community. Security.