Skip to main content

Module cli_locator

Module cli_locator 

Source
Expand description

Where the ambient calls find a provider’s CLI. The lookup behind install.check and the launch lives in the server layer (server::cli_handlers::locate_provider_cli), which registers it here once at startup (set_locator), so ambient does not name server (Area54 #1350). Before that registration nothing is found, which the callers treat as any other CLI that is not there.

Functions§

locate
The CLI path for provider_id, or None when none is installed or no lookup is registered yet.
set_locator
Register the lookup. Later calls change nothing.

Type Aliases§

Locator
A lookup of the CLI a launch of provider_id would run: its path, or None.