/// <summary> /// calls all the core logic of the tool /// </summary> /// <returns></returns> public bool runExecutive() { clp.Args = args; clp.parseCommandLines(); fm.Patterns = clp.Patterns; fm.Recurse = clp.Recurse; foreach (string path in clp.DirectoryPaths) { fm.findFiles(path); } analyzer.Files = fm.getFiles(); foreach (string path in clp.FilePaths) { analyzer.Files.Add(path); } analyzer.FindRelationship = clp.Relationships; analyzer.analyze(); display.displayTypesDetails(); if (!clp.Relationships) { display.displayComplexityDetails(); } else { display.displayRelationshipsDetails(); } return(true); }
/// <summary> /// calls all the core logic of the tool /// </summary> /// <returns></returns> public bool runExecutive() { clp.Args = args; clp.parseCommandLines(); fm.Patterns = clp.Patterns; fm.Recurse = clp.Recurse; foreach (string path in clp.Paths) { fm.findFiles(path); } analyzer.Files = fm.getFiles(); analyzer.Relationshipflag = clp.Relationships; analyzer.analyze(); consoleDisplay.showComplexity(); if (clp.Relationships) { consoleDisplay.showRelationships(); } return(true); }
//Test Stub static void Main(string[] args) { CommandLineParser clp = new CommandLineParser(); clp.Args = args; Console.WriteLine("Command Line Arguements "); /* If the package is run as stand alone application * then add the default values for the member variables */ try { foreach (string arg in args) { Console.Write(" {0}", arg); } Console.Write("\n"); if (clp.parseCommandLines()) { Console.WriteLine("\nParsed Command Line Data"); Console.WriteLine(clp.ToString()); } else { Console.WriteLine("Nothing to Parse"); } } catch { Console.WriteLine("Error during command line parsing"); } }
//Method which starts the execution of all the functionalties in all the packages public bool startExecutive() { commandLineParser.Args = args; commandLineParser.parseCommandLines(); fileManager.Patterns = commandLineParser.Patterns; fileManager.Recurse = commandLineParser.Recurse; foreach (string path in commandLineParser.DirectoryPaths) { fileManager.findFiles(path); } analyzer.Files = fileManager.getFiles(); foreach (string path in commandLineParser.FilePaths) { analyzer.Files.Add(path); } analyzer.FindRelationship = commandLineParser.Relationships; analyzer.analyze(); analyzer.generateXml = commandLineParser.Xml; display.displayTypesDetails(); if (!commandLineParser.Relationships) { display.displayComplexityDetails(); } else { display.displayRelationshipsDetails(); } if (analyzer.generateXml == true) { xmlDislay.generateXmlTypesDetails(); if (commandLineParser.Relationships) { xmlDislay.generateRelationshipsDetails(); } else { xmlDislay.generateXmlComplexityDetails(); } xmlDislay.saveXml(); } return(true); }
static void Main(string[] args) { CommandLineParser clp = new CommandLineParser(); clp.Args = args; Console.WriteLine("Command Line Arguements "); foreach (string arg in args) { Console.Write(" {0}", arg); } Console.Write("\n"); if (clp.parseCommandLines()) { Console.WriteLine("\nParsed Command Line Data"); Console.WriteLine(clp.ToString()); } else { Console.WriteLine("Nothing to Parse"); } Console.ReadLine(); }
static void Main(string[] args) { CommandLineParser clp = new CommandLineParser(); clp.Args = args; Console.WriteLine("Command Line Arguements "); foreach (string arg in args) { Console.Write(" {0}", arg); } Console.Write("\n"); if (clp.parseCommandLines()) { Console.WriteLine("\nParsed Command Line Data"); Console.WriteLine(clp.ToString()); } else Console.WriteLine("Nothing to Parse"); Console.ReadLine(); }