示例#1
0
def createArgParser():
    initParser = createInitialCrossRefGenArgParser()
    parser = argparse.ArgumentParser(description='VistA ICR JSON to Html',
                                     parents=[initParser])
    parser.add_argument('icrJsonFile', help='path to the VistA ICR JSON file')
    parser.add_argument('outdir', help='path to the output web page directory')
    return parser
示例#2
0
def createArgParser():
    import argparse
    from InitCrossReferenceGenerator import createInitialCrossRefGenArgParser
    initParser = createInitialCrossRefGenArgParser()
    parser = argparse.ArgumentParser(description='FileMan Global Data Parser',
                                     parents=[initParser])
    parser.add_argument('-o',
                        '--outDir',
                        required=True,
                        help='top directory to generate output in html')
    parser.add_argument('-lf',
                        '--logFileDir',
                        required=True,
                        help='Logfile directory')
    parser.add_argument('-local', help='Use links to local DOX pages')
    # Require 'fileNos' or 'all'
    group = parser.add_mutually_exclusive_group(required=True)
    group.add_argument('-all',
                       action='store_true',
                       help='generate all dependency files ')
    group.add_argument('-f',
                       '--fileNos',
                       help='FileMan File Numbers',
                       nargs='+')
    return parser
示例#3
0
def createArgParser():
    initParser = createInitialCrossRefGenArgParser()
    parser = argparse.ArgumentParser(description='VistA ICR JSON to Html',
                                     parents=[initParser])
    parser.add_argument('icrJsonFile', help='path to the VistA ICR JSON file')
    parser.add_argument('outDir', help='path to the output web page directory')
    return parser
示例#4
0
def createArgParser():
    initParser = createInitialCrossRefGenArgParser()
    parser = argparse.ArgumentParser(description='VistA ICR JSON to Html',
                                     parents=[initParser])
    parser.add_argument('icrJsonFile', help='path to the VistA ICR JSON file')
    parser.add_argument('-pdf', action='store_true',
                          help='generate html')
    parser.add_argument('-local', action='store_true',
                      help='Use links to local DOX pages')
    parser.add_argument('outdir', help='path to the output web page directory')
    return parser
示例#5
0
def createCrossReferenceLogArgumentParser():
    initCrossRefParser = createInitialCrossRefGenArgParser()
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    filemanDBJsonArgParser = createFileManDBFileAugumentParser()
    parser = argparse.ArgumentParser(add_help=False,
                                     parents=[initCrossRefParser,
                                              callLogArgParser,
                                              dataDictLogArgParser,
                                              filemanDBJsonArgParser])
    return parser
示例#6
0
def createCrossReferenceLogArgumentParser():
    initCrossRefParser = createInitialCrossRefGenArgParser()
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    filemanDBJsonArgParser = createFileManDBFileAugumentParser()
    parser = argparse.ArgumentParser(add_help=False,
                                     parents=[initCrossRefParser,
                                              callLogArgParser,
                                              dataDictLogArgParser,
                                              filemanDBJsonArgParser])
    return parser
示例#7
0
def createArgParser():
    import argparse
    from InitCrossReferenceGenerator import createInitialCrossRefGenArgParser
    initParser = createInitialCrossRefGenArgParser()
    parser = argparse.ArgumentParser(description='FileMan Global Data Parser',
                                     parents=[initParser])
    parser.add_argument('fileNos', help='FileMan File Numbers', nargs='+')
    parser.add_argument('-outdir',
                        required=True,
                        help='top directory to generate output in html')
    parser.add_argument('-all',
                        action='store_true',
                        help='generate all dependency files ')
    return parser
def createArgParser():
  import argparse
  from InitCrossReferenceGenerator import createInitialCrossRefGenArgParser
  initParser = createInitialCrossRefGenArgParser()
  parser = argparse.ArgumentParser(description='FileMan Global Data Parser',
                                   parents=[initParser])
  parser.add_argument('fileNos', help='FileMan File Numbers', nargs='+')
  parser.add_argument('-outdir', required=True,
                      help='top directory to generate output in html')
  parser.add_argument('-all', action='store_true',
                      help='generate all dependency files ')
  parser.add_argument('-local', action='store_true',
                      help='Use links to local DOX pages')
  return parser
示例#9
0
def createCrossReferenceLogArgumentParser():
    initCrossRefParser = createInitialCrossRefGenArgParser()
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    filemanDBJsonArgParser = createFileManDBFileAugumentParser()
    parser = argparse.ArgumentParser(add_help=False,
                                     parents=[initCrossRefParser,
                                              callLogArgParser,
                                              dataDictLogArgParser,
                                              filemanDBJsonArgParser])
    parser.add_argument('-o', '--outDir', required=True,
                        help='Output Web Page directory')
    parser.add_argument('-lf', '--logFileDir', required=True,
                        help='Logfile directory')
    return parser
示例#10
0
def createArgParser():
  import argparse
  from InitCrossReferenceGenerator import createInitialCrossRefGenArgParser
  initParser = createInitialCrossRefGenArgParser()
  parser = argparse.ArgumentParser(description='FileMan Global Data Parser',
                                   parents=[initParser])
  #parser.add_argument('ddFile', help='path to ZWR file contains DD global')
  #parser.add_argument('gdFile', help='path to ZWR file contains Globals data')
  parser.add_argument('fileNos', help='FileMan File Numbers', nargs='+')
  #parser.add_argument('glbRoot', help='Global root location for FileMan file')
  parser.add_argument('-outdir', help='top directory to generate output in html')
  parser.add_argument('-gp', '--gitPath', required=True,
                      help='Path to the folder containing git excecutable')
  parser.add_argument('-all', action='store_true',
                      help='generate all dependency files as well')
  return parser
def createArgParser():
    import argparse
    from InitCrossReferenceGenerator import createInitialCrossRefGenArgParser
    initParser = createInitialCrossRefGenArgParser()
    parser = argparse.ArgumentParser(description='FileMan Global Data Parser',
                                     parents=[initParser])
    #parser.add_argument('ddFile', help='path to ZWR file contains DD global')
    #parser.add_argument('gdFile', help='path to ZWR file contains Globals data')
    parser.add_argument('fileNos', help='FileMan File Numbers', nargs='+')
    #parser.add_argument('glbRoot', help='Global root location for FileMan file')
    parser.add_argument('-outdir',
                        help='top directory to generate output in html')
    parser.add_argument('-all',
                        action='store_true',
                        help='generate all dependency files as well')
    return parser
示例#12
0
def createArgParser():
  import argparse
  from InitCrossReferenceGenerator import createInitialCrossRefGenArgParser
  initParser = createInitialCrossRefGenArgParser()
  parser = argparse.ArgumentParser(description='FileMan Global Data Parser',
                                   parents=[initParser])
  parser.add_argument('-o', '--outDir', required=True,
                      help='top directory to generate output in html')
  parser.add_argument('-lf', '--logFileDir', required=True,
                      help='Logfile directory')
  parser.add_argument('-local', help='Use links to local DOX pages')
  # Require 'fileNos' or 'all'
  group = parser.add_mutually_exclusive_group(required=True)
  group.add_argument('-all', action='store_true',
                      help='generate all dependency files ')
  group.add_argument('-f', '--fileNos', help='FileMan File Numbers', nargs='+')
  return parser
示例#13
0
def createCrossReferenceLogArgumentParser():
    initCrossRefParser = createInitialCrossRefGenArgParser()
    callLogArgParser = createCallGraphLogAugumentParser()
    dataDictLogArgParser = createDataDictionaryAugumentParser()
    filemanDBJsonArgParser = createFileManDBFileAugumentParser()
    parser = argparse.ArgumentParser(add_help=False,
                                     parents=[
                                         initCrossRefParser, callLogArgParser,
                                         dataDictLogArgParser,
                                         filemanDBJsonArgParser
                                     ])
    parser.add_argument('-o',
                        '--outDir',
                        required=True,
                        help='Output Web Page directory')
    parser.add_argument('-lf',
                        '--logFileDir',
                        required=True,
                        help='Logfile directory')
    return parser
示例#14
0
        # Note: Content is NOT checked
        for pdf_dir in expected_pdf_dirs:
            expected_pdf_files = EXPECTED_PDFS[pdf_dir]
            expected_pdf_files.sort()
            generated_pdf_files = os.listdir(os.path.join(generated_pdf_output_dir, pdf_dir))
            generated_pdf_files.sort()
            self.assertEqual(expected_pdf_files, generated_pdf_files)

        # TODO: Remove generated_output_dir?

    def test_05_local(self):
        pass


if __name__ == '__main__':
    init_parser = createInitialCrossRefGenArgParser()
    parser = argparse.ArgumentParser(description='VistA ICR Parser',
                                     parents=[init_parser])
    parser.add_argument('testOutDir', help='Test files will be created here')
    args = parser.parse_args()

    # Require that output directory is empty
    if os.path.exists(args.testOutDir) and os.path.isdir(args.testOutDir):
        if os.listdir(args.testOutDir):
            sys.exit("Test output directory must be empty")

    scripts_dir = os.path.join(args.patchRepositDir, "Utilities", "Dox", "PythonScripts")
    TEST_ICR_FILE = os.path.join(scripts_dir, "ICRTest.txt")
    TEST_ICR_JSON = os.path.join(scripts_dir, "ICRTest.JSON")
    TEST_ICR_DIR = os.path.join(scripts_dir, "ICR_TEST", "ICR")
    TEST_ICR_FILES = os.listdir(TEST_ICR_DIR)