Skip to content

Commit

Permalink
include excludes in generate_project
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden authored and dbrtly committed Oct 27, 2024
1 parent 18594a4 commit 69bf3e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions python_modules/dagster/dagster/_cli/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,13 @@ def scaffold_repository_command(name: str):
)
@click.pass_context
def scaffold_code_location_command(context, name: str):
context.invoke(scaffold_command, name=name, excludes=["README.md"])

click.echo(
click.style(
"WARNING: This command is deprecated. Use `dagster project scaffold --excludes README.md` instead.",
fg="yellow",
)
)
context.invoke(scaffold_command, name=name, excludes=["README.md"])


# end deprecated commands
Expand Down
1 change: 1 addition & 0 deletions python_modules/dagster/dagster/_generate/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def generate_project(path: str, excludes: Optional[List[str]] = None):
os.path.dirname(__file__), "templates", PROJECT_NAME_PLACEHOLDER
),
skip_mkdir=True,
excludes=excludes,
)

click.echo(f"Generated files for Dagster project in {path}.")
Expand Down

0 comments on commit 69bf3e5

Please sign in to comment.