|
|
|
@ -48,8 +48,8 @@ namespace Console.Waterworks.CoOrdinators
|
|
|
|
|
_logger.LogInfoMessage("Attempting to execute command.."); |
|
|
|
|
var result = _commSpec.ExecuteCommand(commandsNamespace, command, commandClasses, commandLibraries, _consoleSpec); |
|
|
|
|
_consoleSpec.WriteOutputToConsole(result); |
|
|
|
|
_logger.LogSuccessMessage("Command has been executed."); |
|
|
|
|
_logger.LogNoteMessage("An error message does not mean the command did not execute properly or sucessfully."); |
|
|
|
|
_logger.LogSuccessMessage("Command has been executed"); |
|
|
|
|
_logger.LogNoteMessage("An error message does not mean the command did not execute properly or sucessfully"); |
|
|
|
|
} |
|
|
|
|
catch (Exception ex) |
|
|
|
|
{ |
|
|
|
@ -57,7 +57,7 @@ namespace Console.Waterworks.CoOrdinators
|
|
|
|
|
_consoleSpec.WriteErrorMessage(ex.Message); |
|
|
|
|
} |
|
|
|
|
_logger.LogInfoMessage("Resetting the console's formatting.."); |
|
|
|
|
_logger.LogNoteMessage("This is to make sure no error messages or one-off formating change corrupts the console environment."); |
|
|
|
|
_logger.LogNoteMessage("This is to make sure no error messages or one-off formating change corrupts the console environment"); |
|
|
|
|
_consoleSpec.ResetConsoleColour(); |
|
|
|
|
_logger.LogSuccessMessage("Console's formating has been reset"); |
|
|
|
|
} |
|
|
|
@ -75,7 +75,7 @@ namespace Console.Waterworks.CoOrdinators
|
|
|
|
|
} |
|
|
|
|
_logger.LogSuccessMessage("Found help information"); |
|
|
|
|
_logger.LogInfoMessage("Attempting to display the help information.."); |
|
|
|
|
_consoleSpec.WriteOutputToConsole("Displaying Help section..."); |
|
|
|
|
_consoleSpec.WriteOutputToConsole("Displaying Help section.."); |
|
|
|
|
_consoleSpec.LineBreak(); |
|
|
|
|
var commandMembers = _helpSpec.GetCommandMembers(commandClasses); |
|
|
|
|
foreach (var command in commandMembers) |
|
|
|
|