Skip to content

feat(cli): drop -reset-citydb, point users at -import-data - #140

Merged
jravani merged 1 commit into
mainfrom
feat/cli-flag-guidance
Sep 23, 2026
Merged

jravani merged 1 commit into
mainfrom
feat/cli-flag-guidance

Conversation

@jravani

@jravani jravani commented Sep 23, 2026

Copy link
Copy Markdown
Member

-create-db against an existing database pointed users at -reset-db, which drops every extracted feature and hand correction. The guidance now offers -import-data first, which adds new 3D city data and skips files already imported.

-reset-citydb is removed along with ResetCityDBOnly: it dropped and re-imported the CityDB schemas while leaving city2tabula features that referenced them in place.

Flag help text and the README flag table match the current CLI.

Verified

  • go build ./..., go vet ./... pass.
  • go test -count=1 ./internal/flags/... ./internal/db/... pass, including a new test asserting the already-exists guidance names -import-data before reset-db.
  • Integration tests (Docker, integration tag) not run.

The already-exists guidance now offers -import-data before -reset-db,
so new source files do not cost the extracted features.
@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/c2t/main.go 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@jravani
jravani merged commit cbe9c41 into main Sep 23, 2026
4 of 5 checks passed
@jravani
jravani deleted the feat/cli-flag-guidance branch September 23, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant