Skip to content

Commit 0d81431

Browse files
authored
Remove confirmation for exit with no verification
In order to use Migrator in Continuous Integration pipelines (which runs unattended), it should have a fully silent mode. So I suggest making the wait for exit confirmation at the end optional. I reused `_skipConnVerification` since no backward compatibility required for ABP templates. BTW I doubt `_skipConnVerification` was correctly named in the first place, so feel free to alter the PR (add another optional parameter defaulting to wait for confirmation) to give the same effect.
1 parent d929314 commit 0d81431

File tree

1 file changed

+5
-2
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Migrator

1 file changed

+5
-2
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Migrator/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void Main(string[] args)
2929
migrateExecuter.Object.Run(_skipConnVerification);
3030
}
3131

32-
Console.WriteLine("Press ENTER to exit...");
33-
Console.ReadLine();
32+
if (!_skipConnVerification)
33+
{
34+
Console.WriteLine("Press ENTER to exit...");
35+
Console.ReadLine();
36+
}
3437
}
3538
}
3639

0 commit comments

Comments
 (0)