package webbrowser
Open and reload URIs in browsers from OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
webbrowser-0.6.2.tbz
sha512=37b7f883d2426613933332ee186d306b8959e67d631b761fa239e292d2c24c4a867177938ee8e675910879386d3404781b30224d53dbf18ac4376c89411a2059
doc/src/webbrowser.cli/webbrowser_cli.ml.html
Source file webbrowser_cli.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 31 32 33 34 35 36 37 38
(*--------------------------------------------------------------------------- Copyright (c) 2016 Daniel C. Bünzli. All rights reserved. SPDX-License-Identifier: ISC ---------------------------------------------------------------------------*) open Cmdliner open Bos let browser = let env = Cmdliner.Cmd.Env.info "BROWSER" in let browser = let parse s = Result.map Option.some (OS.Env.cmd s) in let pp ppf = function | None -> Format.fprintf ppf "OS specific fallback" | Some cmd -> Cmd.pp ppf cmd in Arg.conv (parse, pp) in let doc = "The WWW browser command $(docv) to use. The value may be interpreted and massaged depending on the OS. On Darwin it is sufficient to specify the name of a known existing browser; if absent the application that handles the 'http' URI scheme is used. Complaints and help to improve support are gladly taken at $(i,https://github.com/dbuenzli/webbrowser/issues/1)." in let docv = "CMD" in Arg.(value & opt browser None & info ["b"; "browser"] ~env ~doc ~docv) let prefix = let doc = "Reload the first browser tab which has the URI as a prefix (rather than the exact URI)." in Arg.(value & flag & info ["p"; "prefix"] ~doc) let background = let doc = "Reload URI but keep the browser application in the background."in Arg.(value & flag & info ["g"; "background"] ~doc)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>