示例#1
0
文件: rootprint.py 项目: kvnnap/root
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-d", "--directory", help=DIRECTORY_HELP)
    parser.add_argument("--divide", help=DIVIDE_HELP)
    parser.add_argument("-D", "--draw", default="", help=DRAW_HELP)
    parser.add_argument("-f", "--format", help=FORMAT_HELP)
    parser.add_argument("-o", "--output", help=OUTPUT_HELP)
    parser.add_argument("-s", "--size", help=SIZE_HELP)
    parser.add_argument("-S", "--style", help=STYLE_HELP)
    parser.add_argument("-v", "--verbose", action="store_true", help=VERBOSE_HELP)

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootPrint
    return cmdLineUtils.rootPrint(
        sourceList,
        directoryOption=optDict["directory"],
        divideOption=optDict["divide"],
        drawOption=optDict["draw"],
        formatOption=optDict["format"],
        outputOption=optDict["output"],
        sizeOption=optDict["size"],
        styleOption=optDict["style"],
        verboseOption=optDict["verbose"],
    )
示例#2
0
def execute():
    parser = get_argparse()
    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootLs
    return cmdLineUtils.rootLs(sourceList, oneColumn=optDict["oneColumn"], \
          longListing=optDict["longListing"], treeListing=optDict["treeListing"])
示例#3
0
def execute():
    parser = get_argparse()

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser,
                                                            wildcards=False)

    # Process rootMkdir
    return cmdLineUtils.rootMkdir(sourceList, parents=optDict["parents"])
示例#4
0
def execute():
    parser = get_argparse()

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootRm
    return cmdLineUtils.rootRm(sourceList, interactive=optDict["interactive"], \
          recursive=optDict["recursive"])
示例#5
0
文件: rootmkdir.py 项目: MycrofD/root
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-p", "--parents", help=PARENT_HELP, action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser, wildcards = False)

    # Process rootMkdir
    return cmdLineUtils.rootMkdir(sourceList, parents=optDict["parents"])
示例#6
0
文件: rootrm.py 项目: kvnnap/root
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-i", "--interactive", help=cmdLineUtils.INTERACTIVE_HELP, action="store_true")
    parser.add_argument("-r", "--recursive", help=cmdLineUtils.RECURSIVE_HELP, action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootRm
    return cmdLineUtils.rootRm(sourceList, interactive=optDict["interactive"], recursive=optDict["recursive"])
示例#7
0
def execute():
    parser = get_argparse()

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootPrint
    return cmdLineUtils.rootPrint(sourceList, directoryOption = optDict["directory"], \
           divideOption = optDict["divide"], drawOption = optDict["draw"], \
           formatOption = optDict["format"], \
           outputOption = optDict["output"], sizeOption = optDict["size"], \
           styleOption = optDict["style"], verboseOption = optDict["verbose"])
示例#8
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-1", "--oneColumn", help=ONE_HELP, action="store_true")
    parser.add_argument("-l", "--longListing", help=LONG_PRINT_HELP, action="store_true")
    parser.add_argument("-t", "--treeListing", help=TREE_PRINT_HELP, action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootLs
    return cmdLineUtils.rootLs(sourceList, oneColumn=optDict["oneColumn"], \
                               longListing=optDict["longListing"], treeListing=optDict["treeListing"])
示例#9
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-p",
                        "--parents",
                        help=PARENT_HELP,
                        action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser,
                                                            wildcards=False)

    # Process rootMkdir
    return cmdLineUtils.rootMkdir(sourceList, parents=optDict["parents"])
示例#10
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-i",
                        "--interactive",
                        help=cmdLineUtils.INTERACTIVE_HELP,
                        action="store_true")
    parser.add_argument("-r",
                        "--recursive",
                        help=cmdLineUtils.RECURSIVE_HELP,
                        action="store_true")

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootRm
    return cmdLineUtils.rootRm(sourceList, interactive=optDict["interactive"], \
                               recursive=optDict["recursive"])
示例#11
0
def execute():
    # Collect arguments with the module argparse
    parser = cmdLineUtils.getParserFile(COMMAND_HELP, EPILOG)
    parser.add_argument("-d", "--directory", help=DIRECTORY_HELP)
    parser.add_argument("--divide", help=DIVIDE_HELP)
    parser.add_argument("-D", "--draw", default="",  help=DRAW_HELP)
    parser.add_argument("-f", "--format", help=FORMAT_HELP)
    parser.add_argument("-o", "--output", help=OUTPUT_HELP)
    parser.add_argument("-s", "--size", help=SIZE_HELP)
    parser.add_argument("-S", "--style", help=STYLE_HELP)
    parser.add_argument("-v", "--verbose", action="store_true", help=VERBOSE_HELP)

    # Put arguments in shape
    sourceList, optDict = cmdLineUtils.getSourceListOptDict(parser)

    # Process rootPrint
    return cmdLineUtils.rootPrint(sourceList, directoryOption = optDict["directory"], \
                                  divideOption = optDict["divide"], drawOption = optDict["draw"], \
                                  formatOption = optDict["format"], \
                                  outputOption = optDict["output"], sizeOption = optDict["size"], \
                                  styleOption = optDict["style"], verboseOption = optDict["verbose"])