package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0

doc/b0.memo/B0_memo_cli/index.html

Module B0_memo_cliSource

Command line interface fragments and logic.

Sourcemodule Hash : sig ... end

B0_hash interaction.

Sourcemodule File_cache : sig ... end

B0_zero.File_cache interaction.

Sourcemodule Op : sig ... end

B0_zero.Op interaction.

Sourcemodule Log : sig ... end

B0_memo_log interaction

Memo feedback

pp_op_howto formats instructions on how to get more information about an operation. This is "b0-log --id %d".

Sourceval pp_leveled_feedback : ?sep:unit B0_std.Fmt.t -> ?op_howto:B0_zero.Op.t B0_std.Fmt.t -> output_op_level:B0_std.Log.level -> output_ui_level:B0_std.Log.level -> level:B0_std.Log.level -> [ B0_memo.feedback | B0_zero.Exec.feedback ] B0_std.Fmt.t

pp_leveled_feedback ~sep ~op_howto ~output_op_level ~output_ui_level ~level ppf is formatter for memo feedback:

The formatter op_howto should format a way to got more information about an operation, default to pp_op_howto.

TODO. It's a bit unclear what "ui" is here.

Memo parameters

Sourceval trash_dirname : string

trash_dirname is ".trash", a suggested trash directoy name.

Jobs

Sourceval get_jobs : jobs:int option -> int

get_jobs ~jobs determines a maximal number of spawns. If jobs is None then B0_std.Os.Cpu.logical_count is used.

Sourceval jobs : ?opts:string list -> ?docs:string -> ?doc:string -> ?doc_none:string -> ?env:Cmdliner.Cmd.Env.info -> unit -> int option Cmdliner.Term.t

jobs is a cli interface for specifying the maximal number of commands to spawn concurrently.

  • opts are the cli options to specify it, defaults to ["j";"jobs"].
  • docs is where the option is documented, defaults to Cmdliner.Manpage.s_common_options
  • doc is a doc string.
  • doc_none describes how the value is determined if the term is evaluates to None.
  • env is a variable that can be used to override the default value, defaults to jobs_var.

jobs_env is "B0_JOBS".