From cccf9e426c6acd7b0c39105bbcf2fa2a1b661008 Mon Sep 17 00:00:00 2001 From: benbierens Date: Tue, 11 Jul 2023 10:05:00 +0200 Subject: [PATCH] Adds deploy confirm interaction --- CodexNetDeployer/Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CodexNetDeployer/Program.cs b/CodexNetDeployer/Program.cs index 4ac3a2f..13a4fd9 100644 --- a/CodexNetDeployer/Program.cs +++ b/CodexNetDeployer/Program.cs @@ -35,6 +35,13 @@ public class Program 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 deployment = deployer.Deploy();