swarmctl: agent set-state declares an agent's wanted state
Wraps PUT /api/hives/{hive}/agents/{agent}/state, the route the swarm UI's
state menu uses. States come from swarm_wire::wanted::AgentState; destroyed
needs --yes.
Closes #6159
This commit is contained in:
parent
06b303aff2
commit
71d360c9d2
1 changed files with 187 additions and 1 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -5366,6 +5366,7 @@ dependencies = [
|
|||
"serde_norway",
|
||||
"sha2 0.11.1",
|
||||
"swarm-controller-api",
|
||||
"swarm-wire",
|
||||
"tokio",
|
||||
"url",
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue