using Console.Waterworks.Core.CoOrdinators;
namespace Console.Waterworks.Core
{
public class CW_Liaison
{
CoOrdinator _kevin = new CoOrdinator();
///
/// Hands control over to Console.Waterworks.Core so the program can "run" as intended.
///
/// The place where the program's command-methods are.
/// Information about the console program, stated in Assembly Information.
public void Run(string consoleCommandsNamespace,bool includeProgramInfo)
{
_kevin.PrepareConsoleEnvironment();
if (includeProgramInfo == true) _kevin.DisplayProgramInfo();
_kevin.RunProgram(consoleCommandsNamespace);
}
///
/// Displays all the attribute information it can find, attached to the command-methods, at run-time.
///
///
/// The returned string does not include the "help" information.
/// It returns a string to indicate the method has finished collating the attribute information and displaying the information in the console.
/// This method is intended to be use in a command-method. So, it aims to be compatible with command-method behaviour
///
/// The location of the programs command-method.
public string RequestHelpDocumentation(string consoleCommandsNamespace) => _kevin.DisplayHelpSection(consoleCommandsNamespace);
}
}