package reason
Reason: Syntax & Toolchain for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
reason-3.12.0.tbz
sha256=63d950affbe203701a3d4c076a2750b56211bae7017cd8f59da508efb09a1afe
sha512=3ed24f4567dcf2ef2c05cec45fae18da2b9a78dab098a8e97e6430aaed4c8e3f659c7a5ccab88bce498c4b3d3cd54b01e72b2be4fefdf9f3bfcc2c8eb7fd86d4
doc/src/reason.cmdliner/cmdliner_cmd.ml.html
Source file cmdliner_cmd.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
(*--------------------------------------------------------------------------- Copyright (c) 2022 The cmdliner programmers. All rights reserved. SPDX-License-Identifier: ISC ---------------------------------------------------------------------------*) (* Commands *) (* Command info *) type info = Cmdliner_info.Cmd.t let info = Cmdliner_info.Cmd.v type 'a t = | Cmd of info * 'a Cmdliner_term.parser | Group of info * ('a Cmdliner_term.parser option * 'a t list) let get_info = function Cmd (i, _) | Group (i, _) -> i let children_infos = function | Cmd _ -> [] | Group (_, (_, cs)) -> List.map get_info cs let v i (args, p) = Cmd (Cmdliner_info.Cmd.add_args i args, p) let group ?default i cmds = let args, parser = match default with | None -> None, None | Some (args, p) -> Some args, Some p in let children = List.map get_info cmds in let i = Cmdliner_info.Cmd.with_children i ~args ~children in Group (i, (parser, cmds)) let name c = Cmdliner_info.Cmd.name (get_info c)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>