Completato fixApp x gestione ConfIOB:

- aggiunta tags su richiesta
This commit is contained in:
Samuele Locatelli
2022-12-28 12:49:30 +01:00
parent f33a91efc6
commit 56cb0966fe
4 changed files with 48 additions and 18 deletions
+9 -2
View File
@@ -1,6 +1,7 @@
// See https://aka.ms/new-console-template for more information
using ConfMan.IOB.CApp;
using Spectre.Console;
using System.Diagnostics;
using System.Net;
AnsiConsole.Write(
@@ -96,10 +97,16 @@ newTags.Add("HostAddr", HostAddr);
AnsiConsole.WriteLine();
// ora processa tutti i file, andando ad aggiungere in coda i TAGS selezionati...
Stopwatch sw = new Stopwatch();
sw.Start();
foreach (var confFile in fileList)
{
TagManager tMan = new TagManager(confFile);
tMan.addTagList(newTags);
}
return 1;
sw.Stop();
var elTime = sw.Elapsed;
rule = new Rule("File update [green]Completed[/]!");
rule.Alignment = Justify.Left;
AnsiConsole.Write(rule);
AnsiConsole.MarkupLineInterpolated($"Processati [yellow]{fileList.Count()}[/] file in {elTime.TotalMilliseconds}ms");