pub fn run(cfg: &Config) -> Result<(), Diagnostic>Expand description
Print the resolved bearer token for cfg.server to stdout.
Reads DSP_TOKEN from the environment, resolves the effective token via
resolve_token (env wins over cache), and — unless the token is
locally detected as expired or absent — writes it followed by a single
\n to stdout. Returns Diagnostic::AuthRequired when no token is
cached for the server or the resolved token is expired; never logs,
formats, or otherwise displays the token value except via the final
writeln!.