Put a dry-run warning at the end of dry-run commands for clarity

This commit is contained in:
Salt 2025-01-24 19:35:38 -06:00
parent e6bfed2d27
commit bed8a87e8e

View File

@ -54,3 +54,5 @@ class Command(BaseCommand):
self.stdout.write(self.style.SUCCESS(f'Applied {updates} tags to releases, {ignores} already satisfied'))
else:
self.stdout.write(self.style.SUCCESS(f'No new tags applied, {ignores} rule(s) already satisfied'))
if options['dry_run'] and updates > 0:
self.stdout.write(self.style.WARNING(f'This run was a dry-run only; no changes were made. Invoke without the --dry-run flag to commit'))