package dkml-install-runner
Runner executable for Diskuv OCaml (DKML) installation
Install
Dune Dependency
Authors
Maintainers
Sources
v0.2.0.tar.gz
md5=d65935d6a9a790fec09cfc50f6b04c43
sha512=08aeffeffa41b10ca54c9329bf9f6ec9219060c2e62c3a389d08b096513fe3dc048782e28d5006cae6a35e124cfd09441eb41a063c6a3f12fc6e60fa9d2acef7
doc/src/dkml-install-runner.user/dkml_install_runner_user.ml.html
Source file dkml_install_runner_user.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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
open Dkml_install_register open Dkml_install_api open Dkml_install_runner.Cmdliner_runner open Dkml_install_runner.Error_handling.Monad_syntax module Term = Cmdliner.Term let default_cmd ~program_version = let doc = "the OCaml CLI user installer" in let sdocs = Cmdliner.Manpage.s_common_options in let exits = Term.default_exits in let man = help_secs in ( Term.(ret (const (fun _log_config -> `Help (`Pager, None)) $ setup_log_t)), Term.info "dkml-install-user-runner" ~version:program_version ~doc ~sdocs ~exits ~man ) (** Install all non-administrative CLI subcommands for all the components. Even though all CLI subcommands are registered, setup.exe (setup_main) will only ask for some of the components if the --component option is used. *) let component_cmds ~reg ~target_abi = let selector = Component_registry.All_components in Dkml_install_runner.Error_handling.continue_or_exit (let* install_user_cmds, _fl = Component_registry.install_eval reg ~selector ~fl:Dkml_install_runner.Error_handling.runner_fatal_log ~f:(fun cfg -> let module Cfg = (val cfg : Component_config) in Cfg.install_user_subcommand ~component_name:Cfg.component_name ~subcommand_name:(Fmt.str "install-user-%s" Cfg.component_name) ~fl:Dkml_install_runner.Error_handling.runner_fatal_log ~ctx_t: (ctx_for_runner_t ~install_direction:Install ~target_abi Cfg.component_name reg)) in let* uninstall_user_cmds, _fl = Component_registry.uninstall_eval reg ~selector ~fl:Dkml_install_runner.Error_handling.runner_fatal_log ~f:(fun cfg -> let module Cfg = (val cfg : Component_config) in Cfg.uninstall_user_subcommand ~component_name:Cfg.component_name ~subcommand_name:(Fmt.str "uninstall-user-%s" Cfg.component_name) ~fl:Dkml_install_runner.Error_handling.runner_fatal_log ~ctx_t: (ctx_for_runner_t ~install_direction:Uninstall ~target_abi Cfg.component_name reg)) in return (install_user_cmds @ uninstall_user_cmds)) let main ~target_abi ~program_version = (* Initial logger. Cmdliner evaluation of setup_log_t (through ctx_t) will reset the logger to what was given on the command line. *) let (_ : Log_config.t) = Dkml_install_runner.Cmdliner_runner.setup_log None None in Logs.info (fun m -> m "Installing user-permissioned components with target ABI %s" (Context.Abi_v2.to_canonical_string target_abi)); (* Get all the available components *) let reg = Component_registry.get () in let open Dkml_install_runner.Error_handling in Component_registry.validate reg; Term.( exit @@ catch_and_exit_on_error ~id:"f59b4702" (fun () -> eval_choice ~catch:false (default_cmd ~program_version) (help_cmd :: component_cmds ~reg ~target_abi)))
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>