docs: finish the neutral agent names in the hivectl source and the swarmctl README
hivectl-cli.md is generated from the clap doc comment, so the example name moves into cli.rs; the swarmctl README's create and schedule examples use agent1/agent2 like the handbook pages.
This commit is contained in:
parent
da071e3fa9
commit
ea407823c1
2 changed files with 6 additions and 6 deletions
|
|
@ -35,7 +35,7 @@ pub enum Cmd {
|
|||
/// hive-wide lives at the top level instead (`list-agents`,
|
||||
/// `restart`/`stop`/`start` with a scope, `quota-enable`).
|
||||
Agent {
|
||||
/// Agent name (for example `damocles`, `iris`).
|
||||
/// Agent name (for example `agent1`).
|
||||
name: String,
|
||||
#[command(subcommand)]
|
||||
cmd: AgentCmd,
|
||||
|
|
|
|||
|
|
@ -104,9 +104,9 @@ generates a new one the same way.
|
|||
## `agent create`
|
||||
|
||||
```console
|
||||
# swarmctl agent create scribe --hive alpha
|
||||
# swarmctl agent create agent2 --hive alpha
|
||||
queued: job node 42
|
||||
agent "scribe" will be deployed to hive "alpha" once the job graph runs; `swarmctl` does not wait for it
|
||||
agent "agent2" will be deployed to hive "alpha" once the job graph runs; `swarmctl` does not wait for it
|
||||
```
|
||||
|
||||
`POST /api/agents` on the swarm-controller, over its unix socket
|
||||
|
|
@ -194,9 +194,9 @@ refused. The response body comes from `swarm-controller-api`, imported in
|
|||
## `schedule`
|
||||
|
||||
```console
|
||||
# swarmctl schedule add --name standup --agent scribe --body "post the standup summary" --every 1d
|
||||
# swarmctl schedule list --agent scribe
|
||||
# swarmctl schedule edit kqzpmwab --at 2026-10-05T09:00:00+02:00 --add-agent iris
|
||||
# swarmctl schedule add --name standup --agent agent2 --body "post the standup summary" --every 1d
|
||||
# swarmctl schedule list --agent agent2
|
||||
# swarmctl schedule edit kqzpmwab --at 2026-10-05T09:00:00+02:00 --add-agent agent1
|
||||
# swarmctl schedule pause kqzpmwab
|
||||
# swarmctl schedule rm kqzpmwab
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue