Skip to main content

run

Function run 

Source
pub fn run(
    args: &LoginArgs,
    cfg: &Config,
    client: &dyn DspClient,
    renderer: &mut dyn Renderer,
) -> Result<(), Diagnostic>
Expand description

Log in to a DSP server.

Authenticates with the DSP-API, stores the token in the auth cache, and renders the outcome. Password resolution order: DSP_PASSWORD env var (local/dev only — see [resolve_password]), then the TTY prompt, then stdin when stdin is not a terminal (see ADR-0007).