Adds deploy confirm interaction

This commit is contained in:
benbierens 2023-07-11 10:05:00 +02:00
parent 5fbf538eb6
commit cccf9e426c
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,13 @@ public class Program
return; return;
} }
if (!args.Any(a => a == "-y"))
{
Console.WriteLine("Does the above config look good? [y/n]");
if (Console.ReadLine()!.ToLowerInvariant() != "y") return;
Console.WriteLine("I think so too.");
}
var deployer = new Deployer(config); var deployer = new Deployer(config);
var deployment = deployer.Deploy(); var deployment = deployer.Deploy();