Module B0_ui.B0_std

module B0_std: sig .. end
B0_ui.B0_std configuration.

Configure B0_ui.B0_std's colored output and B0_std.Log verbosity.



Cli arguments


module Arg: sig .. end
Miscelanous Cmdliner argument converters.
val color : ?docs:string ->
?env:Cmdliner.Arg.env -> unit -> B0_std.Tty.cap option Cmdliner.Term.t
color ~docs ~env is a cli interface for specifiying the color capability of the terminal. Can be used with Fmt.set_tty_styling_cap. docs is where the options are documented env is an environment variable that can be used to override the default None (auto configuration).
val verbosity : ?docs:string ->
?env:Cmdliner.Arg.env -> unit -> B0_std.Log.level Cmdliner.Term.t
verbosity ~docs ~env () is a cli interface for specifiying the logging level. Can be used with Log.set_level. docs is where the options are documented. env is an environment variable that can be used to override the default value (Log.Warning).
val setup : ?docs:string ->
?log_spawns:B0_std.Log.level ->
?color_env:Cmdliner.Arg.env ->
?verbosity_env:Cmdliner.Arg.env -> unit -> unit Cmdliner.Term.t
setup ~docs ~trace_spawns_on_debug ~color_env ~verbosity_env () uses B0_ui.B0_std.color and B0_ui.B0_std.verbosity to setup: docs is where the section in which the options are documented and color_env and verbosity_env are used with the env argument of B0_ui.B0_std.color and B0_ui.B0_std.verbosity.