hive-agent: correct doc comments that describe sentinel files, session flags and outcomes the code no longer has
This commit is contained in:
parent
70d1b542e3
commit
ac0bed47e9
11 changed files with 40 additions and 38 deletions
|
|
@ -30,10 +30,10 @@ pub fn hive_domain() -> Option<String> {
|
|||
|
||||
/// Human display name of this hive (e.g. `pr1ma`). Distinct from
|
||||
/// [`hive_domain`] — the domain is the machine-readable DNS address;
|
||||
/// this is the prose label humans use in conversation. Returns None
|
||||
/// when `/etc/hyperhive-hive-facts` carries no name (the host's
|
||||
/// `services.hyperhive.hiveName` is unset), in which case callers fall
|
||||
/// back to the domain or the short label at their discretion.
|
||||
/// this is the prose label humans use in conversation. Reads the
|
||||
/// `HYPERHIVE_HIVE_NAME` env var; returns None when it is unset or empty
|
||||
/// (the host's `services.hyperhive.hiveName` is unset), in which case
|
||||
/// callers fall back to the domain or the short label at their discretion.
|
||||
#[must_use]
|
||||
pub fn hive_name() -> Option<String> {
|
||||
non_empty_env("HYPERHIVE_HIVE_NAME")
|
||||
|
|
|
|||
Loading…
Reference in a new issue