wip(#1970): github-token injection path (priv wire + hive-priv handler + priv_client + hivectl github set-token)
This commit is contained in:
parent
5fb4b9f4b0
commit
80ef7d8151
4 changed files with 102 additions and 0 deletions
|
|
@ -289,6 +289,14 @@ async fn exec(req: PrivRequest, writer: &mut OwnedWriteHalf) -> Result<(String,
|
|||
Ok(res)
|
||||
}
|
||||
|
||||
PrivRequest::WriteAgentGithubToken {
|
||||
ref agent_name,
|
||||
ref token,
|
||||
} => {
|
||||
validate_agent_name(agent_name)?;
|
||||
write_agent_state_file(agent_name, "github-token", &format!("{token}\n"))
|
||||
}
|
||||
|
||||
PrivRequest::RestartMatrixDaemon { ref agent_name } => {
|
||||
restart_matrix_daemon(agent_name).await
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue