docs: document pi2 pairing --json
§8.5 said the CLI keeps only the human report; it now also emits the normalised mint payload that :PiWebPair renders.
This commit is contained in:
1 parent
8a39e65def
commit
7130c69523
1 file changed
+3
-2
+3
-2
@@ -472,8 +472,9 @@ raw module matrix without a quiet zone (`size` strings of `size` `1`/`0` charact
|
|||||||
HTTP mint response carries the same matrix, so the console and a terminal draw the same
|
HTTP mint response carries the same matrix, so the console and a terminal draw the same
|
||||||
symbol. A URL too long for version 10 is printed without a QR, with a note.
|
symbol. A URL too long for version 10 is printed without a QR, with a note.
|
||||||
|
|
||||||
Machines call `POST /api/v1/pair` directly — that is what `:PiWebPair` does — so the CLI
|
Machines and editor plugins use `--json`, which prints the normalised mint payload
|
||||||
keeps only this human report; there is no `--json`.
|
(`{url, code, expiresAt?, qr?, bases[]}`) instead of the human report. `:PiWebPair` in
|
||||||
|
pi2.nvim renders exactly that payload, so it no longer speaks HTTP itself.
|
||||||
|
|
||||||
### 8.6 `pi2 install-service` / `pi2 service`
|
### 8.6 `pi2 install-service` / `pi2 service`
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user