console-program: Interpret the command line and a config file as commands and options

[ bsd3, console, library, system ] [ Propose Tags ] [ Report a vulnerability ]

This library provides a framework to build command line programs.

The constructed program can have several "commands" that provide different modes of operation. Options can be declared to allow fine-tuning of the behaviour of the program. These options are read from the command line when running the program and from a simple configuration file.

Additionally, there is an interactive mode that reads and executes commands from standard input.

Examples of using this library may be found in the Examples directory in the package tarball.

It provides functionality similar to the cmdargs package. Main differences:

  • console-program does not use unsafePerformIO, and tries to give a more haskellish, referentially transparent interface;

  • it allows a full tree of commands, instead of a list, so a command can have subcommands;

  • it parses a configuration file, in addition to the command line arguments.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.2.0.0, 0.2.0.1, 0.3.0.0, 0.3.0.1, 0.3.1.0, 0.3.1.1, 0.3.1.2, 0.3.1.3, 0.3.1.4, 0.3.2.0, 0.4.0.0, 0.4.0.1, 0.4.0.2, 0.4.0.3, 0.4.1.0, 0.4.2.0, 0.4.2.1, 0.4.2.2, 0.4.2.3 (info)
Change log CHANGELOG.md
Dependencies ansi-terminal (>=0.5 && <0.10), ansi-wl-pprint (>=0.5 && <0.7), base (>=4 && <5), containers (>=0.1 && <0.7), directory (>=1.0 && <1.4), haskeline (>=0.7 && <0.8), parsec (>=3.1 && <3.2), parsec-extra (>=0.2 && <0.3), split (>=0.2 && <0.3), transformers (>=0.2 && <0.6), unix (>=2.7 && <2.8), utility-ht (>=0.0 && <0.1) [details]
License BSD-3-Clause
Author Arie Peterson
Maintainer ariep@xs4all.nl
Category System, Console
Source repo head: darcs get http://hub.darcs.net/AriePeterson/console-program
Uploaded by AriePeterson at 2019-03-23T10:31:44Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 16522 total (79 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-03-23 [all 1 reports]