Skip to content

Commit 64e1c3f

Browse files
authored
Chore: minor plan output formatting (#3697)
1 parent 84e3df6 commit 64e1c3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sqlmesh/core/console.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,9 @@ def show_model_difference_summary(
614614
"""
615615
if context_diff.is_new_environment:
616616
msg = (
617-
f"`{context_diff.environment}` environment will be initialized"
617+
f"\n`{context_diff.environment}` environment will be initialized"
618618
if not context_diff.create_from_env_exists
619-
else f"New environment `{context_diff.environment}` will be created from `{context_diff.create_from}`"
619+
else f"\nNew environment `{context_diff.environment}` will be created from `{context_diff.create_from}`"
620620
)
621621
self._print(Tree(f"[bold]{msg}\n"))
622622
if not context_diff.has_snapshot_changes:
@@ -628,7 +628,7 @@ def show_model_difference_summary(
628628
# the PlanBuilder.
629629
self._print(
630630
Tree(
631-
f"[bold]No changes to plan: project files match the `{context_diff.environment}` environment\n"
631+
f"\n[bold]No changes to plan: project files match the `{context_diff.environment}` environment\n"
632632
)
633633
)
634634
return

sqlmesh/core/context_diff.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def snapshots_by_name(self) -> t.Dict[str, Snapshot]:
300300
return {x.name: x for x in self.snapshots.values()}
301301

302302
def requirements_diff(self) -> str:
303-
return "\n".join(
303+
return " " + "\n ".join(
304304
ndiff(
305305
[
306306
f"{k}=={self.previous_requirements[k]}"

0 commit comments

Comments
 (0)