Пример #1
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"],
    )
Пример #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
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
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"])