diff --git a/README.md b/README.md index 86758e5..57489d6 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,6 @@ Potem wczytaj token z remota do lokalnego store: ```bash ./rvctl tokens sync remote r1 ./rvctl tokens update r1 -./rvctl tokens compare ``` Po tym kroku workspace ma juz lokalny store: @@ -103,6 +102,34 @@ Po tym kroku workspace ma juz lokalny store: └── series ``` +Na koniec sprawdz, czy git remote i lokalny store widza ten sam token: + +```bash +./rvctl tokens compare +``` + +Przykladowy wydruk: + +```text +tokens +item server proto host org repo user remote token_ref token valid scope org repo +---- ------ ----- ------------------ --------- ----------- ---- ------ --------- ------------ ------- --------- ------ ------ +1 gitea http 77.90.8.171:3001 edu-tools rv-launcher u1 r1 r1 * e59cc...13be forever wwwwwwwww +++++ ++++ +``` + +Najwazniejsze pola: + +- `remote` - nazwa git remota, tutaj `r1` +- `token_ref` - lokalna nazwa tokena i marker zgodnosci po prawej stronie +- `*` - token w remote i w `tokens.json` jest zgodny +- `S` - token jest tylko w `tokens.json`; to jest normalne w trybie store-only +- `R` - token jest tylko w git remote +- `token` - zamaskowany sekret; `rvctl` nie wypisuje calego tokena +- `valid`, `scope`, `org`, `repo` - metadane i uprawnienia pobrane przez + `tokens update` + +Pelny opis tabeli tokenow jest w `doc/tokens.md`. + ### Z `tokens.json` Jesli masz gotowy plik `tokens.json`, zacznij od skopiowania go do workspace: @@ -123,8 +150,8 @@ Po wejsciu do repo launchera sprawdz store tokenow: ```bash ./rvctl tokens list store -./rvctl tokens compare ./rvctl tokens update r1 +./rvctl tokens compare ``` ### Po pobraniu kart pracy