package ppx_subliner

All checked builds pass
  1. Overview
  2. Docs
[@@deriving subliner] and [%%subliner] for Cmdliner

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.2.2.tar.gz
md5=26c3c7c6851165585e8d6cd4ad2e93db
sha512=3714e4adece480b0fb5c57df3d33fe0279ccba81a513dd7fbfd65f6e15845a03caf1437a6199704331aad84e30c7862ee05cdb7a8eafcef32b41c677f400e357

Description

[@@deriving] plugin to generate Cmdliner terms and sub-command groups and ppx rewriter to generate Cmdliner evaluations.

Added to opam-repository:

README

[@@deriving subliner] and [%%subliner]

OCaml CI GitHub release status Coverage Status

[@@deriving] plugin to generate Cmdliner sub-command groups, and ppx rewriter to generate Cmdliner evaluations.

Installation

ppx_subliner can be installed via OCaml Package Manager.

$ opam install ppx_subliner

Usage

Please see the documentation.

Example

type foo = { my_arg : string } [@@deriving subliner]

type params = Foo of foo | Bar | Foobar of { my_arg : string }
[@@deriving subliner]

let handle = function
  | Foo { my_arg } -> print_endline ("Foo " ^ my_arg)
  | Bar -> print_endline "Bar"
  | Foobar { my_arg } -> print_endline ("Foobar" ^ my_arg)

[%%subliner.cmds
eval.params <- handle]
(** Some docs *)

Dependencies (4)

  1. ppx_make >= "0.3.0"
  2. cmdliner >= "1.1.0"
  3. ppxlib >= "0.10.0"
  4. dune >= "2.7"

Dev Dependencies (5)

  1. odoc with-doc
  2. bisect_ppx with-test
  3. ppx_show with-test
  4. ppx_deriving_cmdliner with-test
  5. alcotest with-test

Optional Dependencies

None

Used by (1)

  1. soteria

Conflicts

None

Build status

Results of building ppx_subliner with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.2.2 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure