|
|
@ -19,6 +19,8 @@ namespace Microsoft.Tye |
|
|
{ |
|
|
{ |
|
|
public static async Task UndeployAsync(IConsole console, FileInfo path, Verbosity verbosity, string @namespace, bool interactive, bool whatIf) |
|
|
public static async Task UndeployAsync(IConsole console, FileInfo path, Verbosity verbosity, string @namespace, bool interactive, bool whatIf) |
|
|
{ |
|
|
{ |
|
|
|
|
|
var watch = System.Diagnostics.Stopwatch.StartNew(); |
|
|
|
|
|
|
|
|
var output = new OutputContext(console, verbosity); |
|
|
var output = new OutputContext(console, verbosity); |
|
|
|
|
|
|
|
|
output.WriteInfoLine("Loading Application Details..."); |
|
|
output.WriteInfoLine("Loading Application Details..."); |
|
|
@ -31,6 +33,12 @@ namespace Microsoft.Tye |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
await ExecuteUndeployAsync(output, application, @namespace, interactive, whatIf); |
|
|
await ExecuteUndeployAsync(output, application, @namespace, interactive, whatIf); |
|
|
|
|
|
|
|
|
|
|
|
watch.Stop(); |
|
|
|
|
|
|
|
|
|
|
|
TimeSpan elapsedTime = watch.Elapsed; |
|
|
|
|
|
|
|
|
|
|
|
output.WriteAlwaysLine($"Time Elapsed: {elapsedTime.Hours:00}:{elapsedTime.Minutes:00}:{elapsedTime.Seconds:00}:{elapsedTime.Milliseconds / 10:00}"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static async Task ExecuteUndeployAsync(OutputContext output, ConfigApplication application, string @namespace, bool interactive, bool whatIf) |
|
|
public static async Task ExecuteUndeployAsync(OutputContext output, ConfigApplication application, string @namespace, bool interactive, bool whatIf) |
|
|
|