Skip to content

Commit 0a15e5b

Browse files
committed
docs(pilotctl): update help text to show node_id|address|hostname in usage lines
approve, reject, untrust, lookup — all accept any identifier form now; update usage lines and the pending help cross-reference to match.
1 parent 413aa9e commit 0a15e5b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

cmd/pilotctl/main.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,8 @@ Subcommands:
840840
List inbound trust handshake requests waiting for your approval.
841841
Each row shows the requesting node ID, their justification, and when they asked.
842842
843-
To approve: pilotctl approve <node_id>
844-
To reject: pilotctl reject <node_id> [reason]
843+
To approve: pilotctl approve <node_id|address|hostname>
844+
To reject: pilotctl reject <node_id|address|hostname> [reason]
845845
846846
Note: nodes in the embedded trusted-agents list are auto-approved on first contact.
847847
`,
@@ -863,22 +863,22 @@ auto-approved on first contact, without requiring manual pilotctl approve).
863863
These are well-known network services (list-agents, weather agents, etc.).
864864
To see live trust state, use: pilotctl trust
865865
`,
866-
"untrust": `Usage: pilotctl untrust <node_id>
866+
"untrust": `Usage: pilotctl untrust <node_id|address|hostname>
867867
868868
Remove trust with a node. Future messages from or to that node will be blocked
869869
until a new handshake is completed.
870870
871871
This does not notify the remote node — they will see connection failures on
872872
their next attempt to reach you.
873873
`,
874-
"reject": `Usage: pilotctl reject <node_id> [reason]
874+
"reject": `Usage: pilotctl reject <node_id|address|hostname> [reason]
875875
876876
Reject a pending inbound trust handshake request. The requesting node is
877877
notified with the optional reason string.
878878
879879
To see pending requests: pilotctl pending
880880
`,
881-
"approve": `Usage: pilotctl approve <node_id>
881+
"approve": `Usage: pilotctl approve <node_id|address|hostname>
882882
883883
Approve a pending inbound trust handshake request from the given node.
884884
Once approved, encrypted messages can flow in both directions (assuming they
@@ -918,9 +918,9 @@ nodes that already know its address or have mutual trust.
918918
Register this node with the registry at the configured address.
919919
Normally called automatically by the daemon at startup.
920920
`,
921-
"lookup": `Usage: pilotctl lookup <node_id>
921+
"lookup": `Usage: pilotctl lookup <node_id|address|hostname>
922922
923-
Look up a node by numeric ID in the registry and print its address,
923+
Look up a node by numeric ID, pilot address, or hostname in the registry and print its address,
924924
hostname, and public key.
925925
`,
926926

0 commit comments

Comments
 (0)