Skip to main content

Module cli

Module cli 

Source
Expand description

Shared CLI plumbing: persisted state (config, secrets) and the FHIR HTTP client built from it. Not user-facing commands themselves โ€” see crate::commands for those.

Modulesยง

client ๐Ÿ”’
Builds the authenticated FHIR HTTP client used by commands that talk to a server (api, testscript, hl7v2), based on the active profileโ€™s auth mode.
config ๐Ÿ”’
Schema and on-disk persistence for named server connection profiles (~/.haste_health/config.toml). The config command (create/delete/list profiles) lives in crate::commands::config; this module only owns the data.
secrets ๐Ÿ”’
Storage for CLI secret material (OIDC client secrets, cached OAuth tokens).
state ๐Ÿ”’
In-memory CLI state for a single invocation, plus the on-disk locations itโ€™s seeded from.