Skip to content

Enhance init command to detect existing Data/*.sql files and propose trackedTables #53

@zacateras

Description

@zacateras

Summary

Update the init command to scan the project directory for existing Data/*.sql files. If such files are found, extract table names and propose a list of initial trackedTables for inclusion in the config file. Prompt the user with the list and ask for confirmation before making changes.

Acceptance Criteria

  • init scans for Data/*.sql files in the project directory.
  • Extract probable table names from these SQL files.
  • Present the user with a proposed list of trackedTables to add to the config.
  • Command asks user for confirmation before saving the changes.
  • Existing behavior remains unchanged if no Data/*.sql files are found.

Motivation: Streamlines setup for existing projects with SQL files, reducing manual configuration steps.


Referenced from /create-issue request.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions