Skip to content

feat(transform): allow transform init into the current directory - #235

Merged
marcociav-exmergo merged 2 commits into
exmergo:mainfrom
AshSgDe29071999:fix/transform-init-current-directory
Aug 7, 2026
Merged

feat(transform): allow transform init into the current directory#235
marcociav-exmergo merged 2 commits into
exmergo:mainfrom
AshSgDe29071999:fix/transform-init-current-directory

Conversation

@AshSgDe29071999

Copy link
Copy Markdown
Contributor

Summary

transform init always wrote into a <name>/ subdirectory, so root-level dbt layouts required manual moves.

Changes

  • Accept . as the project name (use directory basename, sanitize).
  • Add --in-place to scaffold at the run root.
  • Point dbt_project_dir at . in that mode; keep additive refusal when a project already exists.

Closes #200

Closes exmergo#200

Support `transform init .` and `transform init <name> --in-place` so
dbt projects can live at the repository root without moving scaffolded
files by hand. Existing-project refusal is unchanged.

@marcociav-exmergo marcociav-exmergo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AshSgDe29071999 thanks for this. pls add a brief summary of your changes to the CHANGELOG.MD, under Unreleased

@AshSgDe29071999

Copy link
Copy Markdown
Contributor Author

Added Unreleased CHANGELOG entry for transform init into the current directory.

@marcociav-exmergo marcociav-exmergo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for this!

@marcociav-exmergo
marcociav-exmergo merged commit f22b4a3 into exmergo:main Aug 7, 2026
9 checks passed
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.

transform init cannot bootstrap into the current directory

2 participants