feat(cli): reorganize repair commands under unified 'vikunja repair' parent (#2300)

Consolidate four scattered repair/maintenance CLI commands into a unified `vikunja repair` parent command with subcommands.
This commit is contained in:
kolaente
2026-02-25 12:50:09 +01:00
committed by GitHub
parent a5b1a90c42
commit b6155d525c
8 changed files with 120 additions and 39 deletions

View File

@@ -71,13 +71,14 @@ func TestDoPostWithHeaders_GivesUpAfter3Retries(t *testing.T) {
if !strings.Contains(err.Error(), expectedBody) {
t.Errorf("expected error message to contain response body %q, got: %s", expectedBody, err.Error())
}
if resp == nil {
if resp != nil {
defer resp.Body.Close()
if resp.StatusCode != http.StatusInternalServerError {
t.Errorf("expected status 500, got %d", resp.StatusCode)
}
} else {
t.Fatal("expected response to be returned with error, got nil")
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusInternalServerError {
t.Errorf("expected status 500, got %d", resp.StatusCode)
}
if attempts.Load() != 3 {
t.Errorf("expected 3 attempts, got %d", attempts.Load())
}