From 3af7673342e17173fb9372a429e4b778e458ed11 Mon Sep 17 00:00:00 2001 From: Nick Parfyonov Date: Tue, 7 Apr 2026 13:53:12 +0300 Subject: [PATCH] [docs] add classic/secure links to the output After further testing I discovered that the current command only returns TLS links, ignoring classic/secure links if they are present --- docs/QUICK_START_GUIDE.en.md | 2 +- docs/QUICK_START_GUIDE.ru.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/QUICK_START_GUIDE.en.md b/docs/QUICK_START_GUIDE.en.md index 8d8e656..ee64dd3 100644 --- a/docs/QUICK_START_GUIDE.en.md +++ b/docs/QUICK_START_GUIDE.en.md @@ -150,7 +150,7 @@ systemctl daemon-reload **7.** To get the link(s), enter: ```bash -curl -s http://127.0.0.1:9091/v1/users | jq -r '.data[] | "User: \(.username)\n\(.links.tls[0] // empty)"' +curl -s http://127.0.0.1:9091/v1/users | jq -r '.data[] | "[\(.username)]", (.links.classic[]? | "classic: \(.)"), (.links.secure[]? | "secure: \(.)"), (.links.tls[]? | "tls: \(.)"), ""' ``` > Any number of people can use one link. diff --git a/docs/QUICK_START_GUIDE.ru.md b/docs/QUICK_START_GUIDE.ru.md index e4343d7..458871c 100644 --- a/docs/QUICK_START_GUIDE.ru.md +++ b/docs/QUICK_START_GUIDE.ru.md @@ -150,7 +150,7 @@ systemctl daemon-reload **7.** Для получения ссылки/ссылок введите ```bash -curl -s http://127.0.0.1:9091/v1/users | jq -r '.data[] | "User: \(.username)\n\(.links.tls[0] // empty)"' +curl -s http://127.0.0.1:9091/v1/users | jq -r '.data[] | "[\(.username)]", (.links.classic[]? | "classic: \(.)"), (.links.secure[]? | "secure: \(.)"), (.links.tls[]? | "tls: \(.)"), ""' ``` > Одной ссылкой может пользоваться сколько угодно человек.