Remove Git remote when deleting remote token

This commit is contained in:
mpabi
2026-04-27 20:03:25 +02:00
parent ffd12c9905
commit 2ab1a428e7
4 changed files with 15 additions and 26 deletions
+3 -5
View File
@@ -437,17 +437,15 @@ Przyklad:
## `tokens remove store|remote|both REMOTE_ID`
Usuwa rekord z `tokens.json`, poswiadczenia z URL-a git remota albo oba
miejsca. `tokens remove remote` zostawia sam git remote, ale zapisuje jego URL
bez `LOGIN:TOKEN@`.
Usuwa rekord z `tokens.json`, git remote albo oba miejsca.
Domyslnym repo dla `remote` i `both` jest repo, w ktorym lezy `rvctl`. Inne
repo mozna wskazac przez `--repo PATH`.
Przelaczniki:
- `--repo PATH`
Repo, w ktorym ma byc wyczyszczony URL git remota. Domyslnie repo
zawierajace `rvctl`.
Repo, z ktorego ma byc usuniety git remote. Domyslnie repo zawierajace
`rvctl`.
- `--server ENDPOINT`
Endpoint serwera, jesli `tokens.json` ma kilka rekordow o tym samym `id`.
- `--dry-run`
+2 -2
View File
@@ -30,8 +30,8 @@ Kierunek jest jawny:
- `tokens sync store r1` czyta `tokens.json` i zapisuje auth do git remote `r1`
- `tokens update r1` nie synchronizuje sekretu, tylko pobiera metadane z API
- `tokens remove store r1` usuwa rekord z `tokens.json`
- `tokens remove remote r1` usuwa poswiadczenia z URL-a git remota, ale zostawia remote
- `tokens remove both r1` usuwa rekord ze store i poswiadczenia z URL-a git remota
- `tokens remove remote r1` usuwa git remote
- `tokens remove both r1` usuwa rekord ze store i git remote
## Format `tokens.json`