Tezos_client_base_unix.Client_main_run
module type M = sig ... end
val register_default_signer :
?signing_version:Tezos_base.TzPervasives.Signature.version ->
?other_registrations:((module Client_config.Remote_params) -> unit) ->
?logger:Tezos_rpc_http_client_unix.RPC_client_unix.logger ->
Tezos_client_base.Client_context.io_wallet ->
unit
val init_logging :
(module M) ->
?parsed_args:Client_config.cli_args ->
?parsed_config_file:Client_config.Cfg_file.t ->
base_dir:string ->
unit ->
unit Lwt.t
init_logging (module M) ?parsed_args ?parsed_config_file ~base_dir ()
starts the logging process based on optional parsed arguments ?parse_args
, optional configuration file ?parsed_config_file
, with output in the ~base_dir
directory.
val run :
(module M) ->
select_commands:
(Tezos_rpc_http_client_unix.RPC_client_unix.http_ctxt ->
Client_config.cli_args ->
Tezos_client_base.Client_context.full Tezos_clic.command list
Tezos_base.TzPervasives.tzresult
Lwt.t) ->
unit
val lwt_run :
(module M) ->
select_commands:
(Tezos_rpc_http_client_unix.RPC_client_unix.http_ctxt ->
Client_config.cli_args ->
Tezos_client_base.Client_context.full Tezos_clic.command list
Tezos_base.TzPervasives.tzresult
Lwt.t) ->
?disable_logging:bool ->
unit ->
int Lwt.t
lwt_run (module M) ~select_commands ?cmd_args ()
sets up the main application computation as an Lwt promise. Unlike run
, this function does not run the event loop, it merely returns the wrapped promise to be integrated into an existing Lwt-based application. It can optionally disable logging of the underlying process via ?disable_logging
.