• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ingitdb / ingitdb-cli / 25789578953
96%

Build:
DEFAULT BRANCH: main
Ran 13 May 2026 09:09AM UTC
Jobs 1
Files 103
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 May 2026 09:07AM UTC coverage: 80.632% (-0.08%) from 80.709%
25789578953

push

github

inGitDB Dev
feat(cli)!: wire --remote everywhere, remove --github flag

Rename addGitHubFlags → addRemoteFlags and register --remote, --token,
and --provider on every verb that previously accepted --github (insert,
update, delete, select, list collections, plus the record-CRUD
commands). The --github flag is removed cleanly — no shim. Anyone
running it gets cobra's standard "unknown flag" error.

Internals:
  - parseGitHubRepoSpec and githubRepoSpec are deleted; the canonical
    parsed form is remoteSpec from remote_helpers.go.
  - newGitHubConfig now takes a remoteSpec (using Owner()/Repo()).
  - readRemoteDefinitionForID / ForCollection take a remoteSpec.
  - resolveRemoteFromFlags (in cobra_helpers.go) is the new shared
    entry point: parse the value, validate the provider override, and
    return the canonical spec. Errors fire before any I/O.
  - remoteToken(cmd, host) replaces githubToken(cmd) and consults
    --token / <HOST_NO_TLD>_TOKEN / <HOST_FULL>_TOKEN in that order,
    so GITHUB_TOKEN continues to work for github.com via the
    mechanical rule.

Renames at the package level:
  - resolveGitHubRecordContext  → resolveRemoteRecordContext
  - resolveInsertContextGitHub  → resolveInsertContextRemote
  - listCollectionsGitHub       → listCollectionsRemote
                                 + listCollectionsRemoteWithSpec
                                   (testable inner form)

Test updates:
  - TestParseGitHubRepoSpec_* deleted; the canonical parser tests
    live in remote_helpers_test.go as TestParseRemoteSpec_*.
  - TestListCollectionsGitHub_* renamed to TestListCollectionsRemote_*
    and now call listCollectionsRemoteWithSpec with sampleRemoteSpec().
  - Flag-name arrays in delete/insert/update/select tests use
    "remote" in place of "github".
  - --github=owner/repo in invocations becomes
    --remote=github.com/owner/repo.

Verified: go build ./..., go test ./... (all pass), golangci-lint
(0 issues). The only remaining mentions of "github" in... (continued)

46 of 69 new or added lines in 10 files covered. (66.67%)

5 existing lines in 3 files now uncovered.

7323 of 9082 relevant lines covered (80.63%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
70.0
-8.57% cmd/ingitdb/commands/cobra_helpers.go
6
52.5
0.0% cmd/ingitdb/commands/record_context.go
5
38.18
0.0% cmd/ingitdb/commands/insert_context.go
3
74.54
0.0% cmd/ingitdb/commands/select.go
2
37.91
-5.02% cmd/ingitdb/commands/github_helpers.go
1
99.03
-0.97% cmd/ingitdb/commands/list.go

Coverage Regressions

Lines Coverage ∆ File
2
70.0
-8.57% cmd/ingitdb/commands/cobra_helpers.go
2
38.18
0.0% cmd/ingitdb/commands/insert_context.go
1
74.54
0.0% cmd/ingitdb/commands/select.go
Jobs
ID Job ID Ran Files Coverage
1 25789578953.1 13 May 2026 09:09AM UTC 103
80.63
GitHub Action Run
Source Files on build 25789578953
  • Tree
  • List 103
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d0bb5c5f on github
  • Prev Build on main (#25789120714)
  • Next Build on main (#25797828871)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc