fix(#1970): address argus review — # Errors doc, regen hivectl-cli.md, GET /api/github-account status
This commit is contained in:
parent
1b6b307aa7
commit
3e5aff39eb
4 changed files with 67 additions and 1 deletions
|
|
@ -286,6 +286,12 @@ pub async fn write_agent_matrix_token(
|
|||
/// user so the `gh` wrapper / git credential helper can read it from inside the
|
||||
/// container. Single account per agent — no account suffix. The token value is
|
||||
/// operator-supplied (for the agent's `hyperhive.githubAccount`).
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if the hive-priv call fails — the socket is unreachable,
|
||||
/// `agent_name` is rejected by the root-side validation, or the file
|
||||
/// write/chown fails.
|
||||
pub async fn write_agent_github_token(agent_name: &str, token: &str) -> Result<()> {
|
||||
ok(call(&PrivRequest::WriteAgentGithubToken {
|
||||
agent_name: agent_name.to_owned(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue