Expand description
Cloud client builders for the hm cloud verbs.
Config and credentials are owned by the shared hm_config crate:
- layered config (user
~/.config/hm/config.toml+ project.hm/config.toml+HM_*env) supplies the API base (cloud.api_url) and the active org (cloud.org); - bearer tokens live in
hm_config::creds, keyed by API base, withHM_API_TOKENtaking precedence.
This module only assembles an SDK client from that config; it does not own any config or credential storage of its own.
Structs§
- Render
Prefs - Render preferences for cloud commands that stream through
hm-render. - Resolved
Ctx - Resolved cloud context for the
hm cloudverbs.
Functions§
- anon_
client - An anonymous client (for the login flow) + the resolved API base.
- client
- An authenticated cloud client built from the layered config + stored token.
- map_raw
- Map a raw generated-client error into an
anyhowerror with a readable message. The rawError<E>renders the server’s error body (status, headers, decoded value) via itsDisplayimpl, which holds for anyE: Debug— true of the generatedtypes::Errorbody.