Пример #1
0
    def __call__(self, func):
        after = SubCommand.__call__(self, func)
        args = [
            CommandArgument('--root', '-r',
                            help="root of the taskgraph definition relative to topsrcdir"),
            CommandArgument('--quiet', '-q', action="store_true",
                            help="suppress all logging output"),
            CommandArgument('--verbose', '-v', action="store_true",
                            help="include debug-level logging output"),
            CommandArgument('--json', '-J', action="store_const",
                            dest="format", const="json",
                            help="Output task graph as a JSON object"),
            CommandArgument('--labels', '-L', action="store_const",
                            dest="format", const="labels",
                            help="Output the label for each task in the task graph (default)"),
            CommandArgument('--parameters', '-p', default="project=mozilla-central",
                            help="parameters file (.yml or .json; see "
                                 "`taskcluster/docs/parameters.rst`)`"),
            CommandArgument('--no-optimize', dest="optimize", action="store_false",
                            default="true",
                            help="do not remove tasks from the graph that are found in the "
                            "index (a.k.a. optimize the graph)"),
            CommandArgument('--tasks-regex', '--tasks', default=None,
                            help="only return tasks with labels matching this regular "
                            "expression."),
            CommandArgument('--target-kind', default=None,
                            help="only return tasks that are of the given kind, "
                                 "or their dependencies."),
            CommandArgument('-F', '--fast', dest='fast', default=False, action='store_true',
                            help="enable fast task generation for local debugging."),

        ]
        for arg in args:
            after = arg(after)
        return after
Пример #2
0
    def __call__(self, func):
        after = SubCommand.__call__(self, func)
        args = [
            CommandArgument('--root', '-r', default='taskcluster/ci',
                            help="root of the taskgraph definition relative to topsrcdir"),
            CommandArgument('--quiet', '-q', action="store_true",
                            help="suppress all logging output"),
            CommandArgument('--verbose', '-v', action="store_true",
                            help="include debug-level logging output"),
            CommandArgument('--json', '-J', action="store_const",
                            dest="format", const="json",
                            help="Output task graph as a JSON object"),
            CommandArgument('--labels', '-L', action="store_const",
                            dest="format", const="labels",
                            help="Output the label for each task in the task graph (default)"),
            CommandArgument('--parameters', '-p', required=True,
                            help="parameters file (.yml or .json; see "
                                 "`taskcluster/docs/parameters.rst`)`"),
            CommandArgument('--no-optimize', dest="optimize", action="store_false",
                            default="true",
                            help="do not remove tasks from the graph that are found in the "
                            "index (a.k.a. optimize the graph)"),
            CommandArgument('--tasks-regex', '--tasks', default=None,
                            help="only return tasks with labels matching this regular "
                            "expression.")

        ]
        for arg in args:
            after = arg(after)
        return after
Пример #3
0
 def __call__(self, func):
     after = SubCommand.__call__(self, func)
     args = [
         CommandArgument(
             '--root',
             '-r',
             default='taskcluster/ci',
             help="root of the taskgraph definition relative to topsrcdir"),
         CommandArgument('--quiet',
                         '-q',
                         action="store_true",
                         help="suppress all logging output"),
         CommandArgument('--verbose',
                         '-v',
                         action="store_true",
                         help="include debug-level logging output"),
         CommandArgument('--parameters',
                         '-p',
                         required=True,
                         help="parameters file (.yml or .json; see "
                         "`taskcluster/docs/parameters.rst`)`"),
         CommandArgument(
             '--no-optimize',
             dest="optimize",
             action="store_false",
             default="true",
             help="do not remove tasks from the graph that are found in the "
             "index (a.k.a. optimize the graph)"),
     ]
     for arg in args:
         after = arg(after)
     return after
Пример #4
0
 def __call__(self, func):
     after = SubCommand.__call__(self, func)
     args = [
         CommandArgument('--tree', metavar='TREE', type=str,
             help='Firefox tree.'),
         CommandArgument('--job', metavar='JOB', choices=['android-api-11', 'android-x86'],
             help='Build job.'),
     ]
     for arg in args:
         after = arg(after)
     return after
Пример #5
0
 def __call__(self, func):
     after = SubCommand.__call__(self, func)
     args = [
         CommandArgument('--tree', metavar='TREE', type=str,
                         help='Firefox tree.'),
         CommandArgument('--job', metavar='JOB', choices=JOB_CHOICES,
                         help='Build job.'),
         CommandArgument('--verbose', '-v', action='store_true',
                         help='Print verbose output.'),
     ]
     for arg in args:
         after = arg(after)
     return after
Пример #6
0
 def __call__(self, func):
     after = SubCommand.__call__(self, func)
     args = [
         CommandArgument("--tree",
                         metavar="TREE",
                         type=str,
                         help="Firefox tree."),
         CommandArgument("--job",
                         metavar="JOB",
                         choices=JOB_CHOICES,
                         help="Build job."),
         CommandArgument("--verbose",
                         "-v",
                         action="store_true",
                         help="Print verbose output."),
     ]
     for arg in args:
         after = arg(after)
     return after
Пример #7
0
 def __call__(self, func):
     after = SubCommand.__call__(self, func)
     args = [
         CommandArgument('--root', '-r', default='taskcluster/ci',
                         help="root of the taskgraph definition relative to topsrcdir"),
         CommandArgument('--quiet', '-q', action="store_true",
                         help="suppress all logging output"),
         CommandArgument('--verbose', '-v', action="store_true",
                         help="include debug-level logging output"),
         CommandArgument('--parameters', '-p', required=True,
                         help="parameters file (.yml or .json; see "
                              "`taskcluster/docs/parameters.rst`)`"),
         CommandArgument('--no-optimize', dest="optimize", action="store_false",
                         default="true",
                         help="do not remove tasks from the graph that are found in the "
                         "index (a.k.a. optimize the graph)"),
     ]
     for arg in args:
         after = arg(after)
     return after
Пример #8
0
 def __init__(self, *args, **kwargs):
     SubCommand.__init__(self, *args, **kwargs)
Пример #9
0
 def __call__(self, func):
     after = SubCommand.__call__(self, func)
     args = [
         CommandArgument(
             "--root",
             "-r",
             help="root of the taskgraph definition relative to topsrcdir",
         ),
         CommandArgument("--quiet",
                         "-q",
                         action="store_true",
                         help="suppress all logging output"),
         CommandArgument(
             "--verbose",
             "-v",
             action="store_true",
             help="include debug-level logging output",
         ),
         CommandArgument(
             "--json",
             "-J",
             action="store_const",
             dest="format",
             const="json",
             help="Output task graph as a JSON object",
         ),
         CommandArgument(
             "--labels",
             "-L",
             action="store_const",
             dest="format",
             const="labels",
             help=
             "Output the label for each task in the task graph (default)",
         ),
         CommandArgument(
             "--parameters",
             "-p",
             default="project=mozilla-central",
             help="parameters file (.yml or .json; see "
             "`taskcluster/docs/parameters.rst`)`",
         ),
         CommandArgument(
             "--no-optimize",
             dest="optimize",
             action="store_false",
             default="true",
             help="do not remove tasks from the graph that are found in the "
             "index (a.k.a. optimize the graph)",
         ),
         CommandArgument(
             "--tasks-regex",
             "--tasks",
             default=None,
             help="only return tasks with labels matching this regular "
             "expression.",
         ),
         CommandArgument(
             "--target-kind",
             default=None,
             help="only return tasks that are of the given kind, "
             "or their dependencies.",
         ),
         CommandArgument(
             "-F",
             "--fast",
             dest="fast",
             default=False,
             action="store_true",
             help="enable fast task generation for local debugging.",
         ),
         CommandArgument(
             "-o",
             "--output-file",
             default=None,
             help="file path to store generated output.",
         ),
         CommandArgument(
             "--diff",
             const="default",
             nargs="?",
             default=None,
             help=
             "Generate and diff the current taskgraph against another revision. "
             "Without args the base revision will be used. A revision specifier such as "
             "the hash or `.~1` (hg) or `HEAD~1` (git) can be used as well.",
         ),
     ]
     for arg in args:
         after = arg(after)
     return after