Completato fixApp x gestione ConfIOB:
- aggiunta tags su richiesta
This commit is contained in:
@@ -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");
|
||||
Reference in New Issue
Block a user