package pplumbing

  1. Overview
  2. Docs
Utility libraries to use with [pp]

Install

dune-project
 Dependency

Authors

Maintainers

Sources

pplumbing-0.0.16.tbz
sha256=8ae0c09fec9088bc7af60582717a9e9d8bb7703e2fbf0a1b90b82e5962ed7039
sha512=ddd1d5a3d47e7c5ebfb2898f0810156dfca4e10df500ce8f39238cfe02b51fd12ea6d7796914bd02e9ad8e615da1ed7067c9f712bdbbfb884cab08d57bba3564

doc/pplumbing.log-cli/Log_cli/index.html

Module Log_cliSource

include module type of struct include Pplumbing_log_cli.Log_cli end

Configuration

Sourceval setup_config : config:Config.t -> unit

Perform global side effects to modules such as Err, Logs & Fmt to configure how to do error rendering in the terminal, set log levels, etc. If you wish to do this automatically from the arguments parsed in a command line, see also set_config.

Sourceval set_config : unit -> unit Cmdlang.Command.Arg.t

Adding this argument to your command line will make it support Err configuration and takes care of setting the global configuration with specification coming from the command line. This is designed to work well with project using Err, Logs and Fmt.

  let open Command.Std in
  let+ () = Log_cli.set_config () in ...