package ppx_subliner
[@@deriving subliner] and [%%subliner] for Cmdliner
Install
Dune Dependency
Authors
Maintainers
Sources
v0.2.1.tar.gz
md5=9cb768124f7bc03c9a732a3f680f100f
sha512=fbaa8d3c82d6e46941ff801e2b96a8b4118579a63f971b13d50e365163fc63bc990c7804ff9f3ff8be267a3d37dfa32acba7e7d52535927f80a98e85fe79a4a1
Description
[@@deriving] plugin to generate Cmdliner terms and sub-command groups and ppx rewriter to generate Cmdliner evaluations.
Published: 22 Aug 2023
README
[@@deriving subliner] and [%%subliner]
[@@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 *)
Dev Dependencies (5)
-
odoc
with-doc
-
bisect_ppx
with-test
-
ppx_show
with-test
-
ppx_deriving_cmdliner
with-test
-
alcotest
with-test
Used by
None
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page