···11+opam-version: "2.0"
22+synopsis: "Utility libraries to use with [pp]"
33+maintainer: ["Mathieu Barbin <opensource@mbarbin.org>"]
44+authors: ["Mathieu Barbin"]
55+license: "MIT"
66+homepage: "https://github.com/mbarbin/pplumbing"
77+doc: "https://mbarbin.github.io/pplumbing/"
88+bug-reports: "https://github.com/mbarbin/pplumbing/issues"
99+depends: [
1010+ "dune" {>= "3.17"}
1111+ "ocaml" {>= "5.2"}
1212+ "cmdlang" {>= "0.0.9"}
1313+ "cmdlang-to-cmdliner" {>= "0.0.9"}
1414+ "cmdliner" {>= "1.3.0"}
1515+ "dyn" {>= "3.17"}
1616+ "fmt" {>= "0.9.0"}
1717+ "loc" {>= "0.2.2"}
1818+ "logs" {>= "0.7.0"}
1919+ "ordering" {>= "3.17"}
2020+ "pp" {>= "2.0.0"}
2121+ "sexplib0" {>= "v0.17"}
2222+ "stdune" {>= "3.17"}
2323+ "odoc" {with-doc}
2424+]
2525+build: [
2626+ ["dune" "subst"] {dev}
2727+ [
2828+ "dune"
2929+ "build"
3030+ "-p"
3131+ name
3232+ "-j"
3333+ jobs
3434+ "@install"
3535+ "@runtest" {with-test}
3636+ "@doc" {with-doc}
3737+ ]
3838+]
3939+dev-repo: "git+https://github.com/mbarbin/pplumbing.git"
4040+description: """\
4141+4242+[pplumbing] defines a set of utility libraries to use with [pp]. It
4343+is compatible with [logs] and inspired by design choices used by
4444+[dune] for user messages:
4545+4646+- [Pp_tty] extends [pp] to build colored documents in the user's
4747+ terminal using ansi escape codes.
4848+4949+- [Err] is an abstraction to report located errors and warnings to
5050+ the user.
5151+5252+- [Log] is an interface to [logs] using [Pp_tty] rather than [Format].
5353+5454+- [Log_cli] contains functions to work with [Err] on the side of end
5555+ programs (such as a command line tool). It defines command line
5656+ helpers to configure the [Err] library, while taking care of setting
5757+ the [logs] and [fmt] style rendering.
5858+5959+- [Cmdlang_cmdliner_runner] is a library for running command line
6060+ programs specified with [cmdlang] with [cmdliner] as a backend and
6161+ making opinionated choices, assuming your dependencies are using
6262+ [Err].
6363+6464+These libraries are meant to combine nicely into a small ecosystem of
6565+useful helpers to build CLIs in OCaml.
6666+6767+[cmdlang]: https://github.com/mbarbin/cmdlang
6868+[cmdliner]: https://github.com/dbuenzli/cmdliner
6969+[dune]: https://github.com/ocaml/dune
7070+[fmt]: https://github.com/dbuenzli/fmt
7171+[logs]: https://github.com/dbuenzli/logs
7272+[pp]: https://github.com/ocaml-dune/pp
7373+7474+"""
7575+tags: [ "cli" "cmdlang" "logs" "pp" ]
7676+x-maintenance-intent: [ "(latest)" ]
7777+url {
7878+ src:
7979+ "https://github.com/mbarbin/pplumbing/releases/download/0.0.10/pplumbing-0.0.10.tbz"
8080+ checksum: [
8181+ "sha256=17725f5fc34bab17168bb8dadca78b07e76aada6736617782af34d34ef0e7cc1"
8282+ "sha512=6b538f79a41dc43f6b8adca455972a0755ddbeb348f17442cb47a0eb3d72ef9bf630ffbe2e3634d66d1b44972ade7bf95e6b495c54bb219841cf8024b16b196d"
8383+ ]
8484+}
8585+x-commit-hash: "48fa979cbfad07d1111a09c01999560f20fd7f5c"