Format token item table without secrets
This commit is contained in:
+8
-6
@@ -304,9 +304,10 @@ Typowy wynik:
|
||||
|
||||
```text
|
||||
items
|
||||
item<TAB>source<TAB>remote<TAB>kind<TAB>user<TAB>token<TAB>result<TAB>status<TAB>url
|
||||
1<TAB>repo<TAB>r1<TAB>auth<TAB>u1<TAB>remote<TAB>existing<TAB>in_sync<TAB>http://77.90.8.171:3001
|
||||
1<TAB>tokens.json<TAB><TAB>store<TAB>u1<TAB>t1<TAB>present<TAB>in_sync<TAB>http://77.90.8.171:3001
|
||||
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
|
||||
```
|
||||
|
||||
Jesli remote istnieje, ale ma URL bez `LOGIN:TOKEN@`, wynik bedzie mial
|
||||
@@ -376,9 +377,10 @@ repo_root<TAB>...
|
||||
token_path<TAB>...
|
||||
|
||||
items
|
||||
item<TAB>source<TAB>remote<TAB>kind<TAB>user<TAB>token<TAB>result<TAB>status<TAB>url
|
||||
1<TAB>repo<TAB>r1<TAB>plain<TAB><TAB><TAB>no_credentials<TAB>store_ahead<TAB>http://77.90.8.171:3001
|
||||
1<TAB>tokens.json<TAB><TAB>store<TAB>u1<TAB>t1<TAB>present<TAB>store_ahead<TAB>http://77.90.8.171:3001
|
||||
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
|
||||
|
||||
status
|
||||
item<TAB>value
|
||||
|
||||
+3
-3
@@ -84,7 +84,7 @@ Dzialanie:
|
||||
- skanuje remote URL-e w repo
|
||||
- zapisuje znalezione tokeny do `tokens.json`
|
||||
- zapisuje je per endpoint serwera
|
||||
- wypisuje domyslnie tylko waska tabele TSV `items`
|
||||
- wypisuje domyslnie tylko waska tabele `items`
|
||||
- z `--verbose` dopisuje diagnostyczne sekcje `context` oraz `scan`
|
||||
|
||||
Tabela `items` porownuje dwa zrodla dla tego samego endpointu. Ten sam `item`
|
||||
@@ -100,10 +100,10 @@ Kolumny w tabeli `items`:
|
||||
- `remote` - nazwa remote, na przyklad `r1`; tylko dla `source=repo`
|
||||
- `kind` - `auth`, `plain`, `store` albo `missing`
|
||||
- `user` - login odczytany z URL albo ze store
|
||||
- `token` - `remote` dla tokenu w URL albo nazwa tokenu ze store, na przyklad `t1`
|
||||
- `token_ref` - referencja bez sekretu: `remote` dla tokenu w URL albo nazwa tokenu ze store, na przyklad `t1`
|
||||
- `result` - `added`, `existing`, `present`, `no_credentials` albo `missing`
|
||||
- `status` - relacja repo do `tokens.json`, na przyklad `in_sync` albo `store_ahead`
|
||||
- `url` - endpoint serwera bez sekretu, trzymany jako ostatnia kolumna
|
||||
- `url` - endpoint serwera bez sekretu, trzymany jako ostatnia kolumna i przycinany do szerokosci tabeli
|
||||
|
||||
Przyklad:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user