Skip to content

Commit 9d6df88

Browse files
committed
add warning to rebuild hierarchy after clean-entities
1 parent 227681a commit 9d6df88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

poliloom/poliloom/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,10 @@ def clean_entities(dry_run):
780780
if not dry_run:
781781
session.commit()
782782
click.echo("\n✅ Clean-up completed successfully")
783+
if any_removed:
784+
click.echo(
785+
"\n⚠️ Run 'poliloom dump build-trees' to rebuild the hierarchy."
786+
)
783787
else:
784788
click.echo("\n✅ Dry run completed - no changes made")
785789

0 commit comments

Comments
 (0)