def main(): crossRefParse = createCrossReferenceLogArgumentParser() parser = argparse.ArgumentParser( description='VistA Cross-Reference Builder', parents=[crossRefParse]) parser.add_argument('-pj', '--pkgDepJson', help='Output JSON file for package dependencies') result = parser.parse_args() initLogging(result.logFileDir, "GeneratePackageDep.log") logger.debug(result) crossRefBlder = CrossReferenceBuilder() crossRef = crossRefBlder.buildCrossReferenceWithArgs(result) crossRef.generateAllPackageDependencies() outputAllPackageDependency(crossRef, result.pkgDepJson)
doxDir = os.path.join(args.patchRepositDir, 'Utilities/Dox') crossRef = CrossReferenceBuilder().buildCrossReferenceWithArgs( args, pkgDepJson=None, icrJson=parsedICRJSON, inputTemplateDeps=readIntoDictionary(args.inputTemplateDep), sortTemplateDeps=readIntoDictionary(args.sortTemplateDep), printTemplateDeps=readIntoDictionary(args.printTemplateDep)) logger.info("Starting generating graphs....") graphGenerator = GraphGenerator(crossRef, args.outdir, doxDir, args.dot) graphGenerator.generateGraphs() logger.info("End of generating graphs") if __name__ == '__main__': crossRefArgParse = createCrossReferenceLogArgumentParser() parser = argparse.ArgumentParser( description='VistA Visual Cross-Reference Graph Generator', parents=[crossRefArgParse]) parser.add_argument('-o', '--outdir', required=True, help='Output Web Page directory') parser.add_argument('-dot', required=True, help='path to the folder containing dot excecutable') parser.add_argument('-lf', '--outputLogFileName', required=False, help='the output Logging file') parser.add_argument('-icr',
def printUsage(): print ("Please enter quit to exit") print ("Please enter help for usage") print ("please enter orphan_routine to print orphan routines") print ("please enter orphan_global to print orphan globals") print ("please enter max_call to print routines with max caller and max called routines") print ("please enter max_dep to print packages with max dependencies and max dependents") print ("please enter gen_allpack to generate all packages dependency list") print ("please enter all_percent to print all routines start with %") print ("please enter R:<routineName> to print all information related to a routine") print ("please enter G:<globalname> to print all information related to a global") print ("please enter P:<packageName> to print all information related to a package") if __name__ == '__main__': crossRefArgParse = createCrossReferenceLogArgumentParser() parser = argparse.ArgumentParser( description='VistA Cross-Reference information Console', parents=[crossRefArgParse]) result = parser.parse_args(); print result initConsoleLogging() crossRef = CrossReferenceBuilder().buildCrossReferenceWithArgs(result) # read the user input from the terminal isExit = False printUsage() while not isExit: var = raw_input("Please enter the routine Name or package Name:") if (var == 'quit'): isExit = True continue