package pplumbing
Utility libraries to use with [pp]
Install
Dune Dependency
Authors
Maintainers
Sources
pplumbing-0.0.14.tbz
sha256=ed7eaba180378a59719e9af63ccdc89dde8e0a20f2cba420abb0080b0bc4a868
sha512=f168c37c1acd38c92e5b6d59321da4021195b6ddc49dde82de70e9282b55042621bea1b84a677d57f83604c06d6ee9c790b683fd589cd2097ab8f00c293f56af
doc/src/pplumbing.cmdlang-cmdliner-runner/cmdlang_cmdliner_runner.ml.html
Source file cmdlang_cmdliner_runner.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
(*********************************************************************************) (* pplumbing - Utility libraries to use with [pp] *) (* SPDX-FileCopyrightText: 2024-2025 Mathieu Barbin <mathieu.barbin@gmail.com> *) (* SPDX-License-Identifier: MIT *) (*********************************************************************************) let run ?exn_handler cmd ~name ~version = match Err.protect ?exn_handler (fun () -> Cmdliner.Cmd.eval ~catch:false (Cmdlang_to_cmdliner.Translate.command cmd ~name ~version)) with | Ok code | Error code -> (* We allow the function to terminate normally when [code=0]. This is because [bisect_ppx] instruments the out-edge of calls to [run] in executables. If we never return, it would create false negatives in test coverage. We may revisit this decision in the future if the context changes. *) if code <> 0 then exit code ;;
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>