Clarify token scan identity columns

This commit is contained in:
mpabi
2026-04-26 20:02:43 +02:00
parent 758e4871fb
commit 5f0da59aa2
4 changed files with 70 additions and 60 deletions
+14 -12
View File
@@ -305,20 +305,22 @@ Typowy wynik:
```text
items
item source remote kind user token_ref result status url
---- ----------- ---------- -------- ---------- ---------- ---------------- ----------- --------------------------------
1 repo r1 auth u1 remote existing in_sync http://77.90.8.171:3001
1 tokens.json store u1 t1 present in_sync http://77.90.8.171:3001
item source id credential user has_token sync endpoint
---- ----------- ---------- ---------- ---------- --------- ----- --------------------------------
1 repo r1 auth u1 yes yes http://77.90.8.171:3001
1 tokens.json t1 store u1 yes yes http://77.90.8.171:3001
```
Jesli remote istnieje, ale ma URL bez `LOGIN:TOKEN@`, wynik bedzie mial
w wierszu `repo` wartosci `kind=plain` i `result=no_credentials`. Jezeli
ten sam endpoint istnieje w `tokens.json`, drugi wiersz tego samego `item`
pokaze `source=tokens.json`, `token=t1` i `result=present`.
w wierszu `repo` wartosci `credential=plain` i `has_token=no`. Jezeli ten sam
endpoint istnieje w `tokens.json`, drugi wiersz tego samego `item` pokaze
`source=tokens.json`, `id=t1` i `has_token=yes`.
Ten sam numer `item` oznacza jedna pare logiczna dla jednego endpointu. Wiersz
`source=repo` pokazuje stan remote, a wiersz `source=tokens.json` pokazuje stan
lokalnego store.
lokalnego store. Kolumna `sync` jest flaga zgodnosci calej pary repo/store.
Kolumna `id` pokazuje identyfikator miejsca przechowywania tokena: dla repo jest
to nazwa remota, na przyklad `r1`, a dla store nazwa tokenu, na przyklad `t1`.
Przyklad:
@@ -382,10 +384,10 @@ repo_root<TAB>...
token_path<TAB>...
items
item source remote kind user token_ref result status url
---- ----------- ---------- -------- ---------- ---------- ---------------- ----------- --------------------------------
1 repo r1 plain no_credentials store_ahead http://77.90.8.171:3001
1 tokens.json store u1 t1 present store_ahead http://77.90.8.171:3001
item source id credential user has_token sync endpoint
---- ----------- ---------- ---------- ---------- --------- ----- --------------------------------
1 repo r1 plain no no http://77.90.8.171:3001
1 tokens.json t1 store u1 yes no http://77.90.8.171:3001
status
item<TAB>value