pub async fn version(
api: Option<&dyn GatewayApi>,
cli_version: &'static str,
) -> Result<VersionResult, CoreError>Expand description
The version action. The CLI resolves the profile + credential and
constructs the client first (the env overlay precedence belongs to the
dispatch site); api: None is the fresh-install / no-profile path.
Credential exhaustion for this check is degraded to header-less at
the dispatch site (version must not demand a secret) — every other
credential error already propagated before we got here.