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

datatug / datatug-cli / 26883351596
62%

Build:
DEFAULT BRANCH: main
Ran 03 Jun 2026 12:01PM UTC
Jobs 1
Files 275
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

03 Jun 2026 12:00PM UTC coverage: 38.558% (+0.2%) from 38.382%
26883351596

push

github

trakhimenok
fix(cli): wire scan/projects-add flags and stop scan from panicking

Closes #136, closes #137.

After the migration to urfave/cli/v3 the command structs still carried
jessevdk/go-flags struct tags, but their flags were never registered and the
action structs were never populated — so `scan` and `projects add` could not
receive input, and `scan` used panic() on unimplemented paths.

scan (#136):
- register all flags (-p/-d project selection, -D/-s/--port/-U/-P/--db/
  --dbmodel/--env) and populate scanDbCommand from the parsed command
- extract connection-string construction into scanDbCommand.connectionParams(),
  which returns an error (no more panic) for the not-yet-implemented paths
  (sqlite3, and env-derived host)

projects add (#137):
- register -p/--project and -d/--directory and populate the command
- replace the broken local saveConfig (created a literal "~/.datatug.yaml")
  with dtconfig.SaveSettings; point cmd_demo.go at the same helper

Also: resolve a locally-added project (stored as Path) by -p/--project and in
the project store, not only Origin-based repos.

Tests: connectionParams (sqlite3/no-host error, sqlserver ok), flag
registration for both commands, and getProjPathsByID Path/Origin fallback.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

30 of 62 new or added lines in 5 files covered. (48.39%)

4 existing lines in 3 files now uncovered.

5510 of 14290 relevant lines covered (38.56%)

0.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
38.89
23.79% apps/datatugapp/commands/cmd_scan_db.go
6
28.95
14.13% apps/datatugapp/commands/cmd_projects_add.go
5
0.0
0.0% apps/datatugapp/commands/project_base_command.go
1
3.73
0.0% apps/datatugapp/commands/cmd_demo.go

Coverage Regressions

Lines Coverage ∆ File
2
76.22
-1.08% pkg/dbcopy/engine.go
1
38.89
23.79% apps/datatugapp/commands/cmd_scan_db.go
1
82.35
-0.84% pkg/dbcopy/engine_rows.go
Jobs
ID Job ID Ran Files Coverage
1 26883351596.1 03 Jun 2026 12:01PM UTC 275
38.56
GitHub Action Run
Source Files on build 26883351596
  • Tree
  • List 275
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e09c871a on github
  • Prev Build on main (#26833367175)
  • Next Build on main (#26884722401)
  • 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