当前位置: 首页>>代码示例>>Python>>正文


Python multicommandtool.Command类代码示例

本文整理汇总了Python中webkitpy.tool.multicommandtool.Command的典型用法代码示例。如果您正苦于以下问题:Python Command类的具体用法?Python Command怎么用?Python Command使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Command类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self):
     options = [
         make_option("--bug-id", action="store", type="string", dest="bug_id", help="Specify bug id if no URL is provided in the commit log."),
         make_option("--comment", action="store", type="string", dest="comment", help="Text to include in bug comment."),
         make_option("--open", action="store_true", default=False, dest="open_bug", help="Open bug in default web browser (Mac only)."),
         make_option("--update-only", action="store_true", default=False, dest="update_only", help="Add comment to the bug, but do not close it."),
     ]
     Command.__init__(self, options=options)
开发者ID:Comcast,项目名称:WebKitForWayland,代码行数:8,代码来源:upload.py

示例2: __init__

    def __init__(self):
        options = [
            make_option("--committer-minimum", action="store", dest="committer_minimum", type="int", default=10, help="Specify minimum patch count for Committer nominations."),
            make_option("--reviewer-minimum", action="store", dest="reviewer_minimum", type="int", default=80, help="Specify minimum patch count for Reviewer nominations."),
            make_option("--max-commit-age", action="store", dest="max_commit_age", type="int", default=9, help="Specify max commit age to consider for nominations (in months)."),
            make_option("--show-commits", action="store_true", dest="show_commits", default=False, help="Show commit history with nomination suggestions."),
        ]

        Command.__init__(self, options=options)
        # FIXME: This should probably be on the tool somewhere.
        self._committer_list = CommitterList()
开发者ID:iArnaud,项目名称:webkitnix,代码行数:11,代码来源:suggestnominations.py

示例3: __init__

 def __init__(self):
     self._sequence = StepSequence(self.steps)
     Command.__init__(self, self._sequence.options())
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:3,代码来源:abstractsequencedcommand.py

示例4: test_parse_required_arguments

 def test_parse_required_arguments(self):
     self.assertEqual(Command._parse_required_arguments("ARG1 ARG2"), ["ARG1", "ARG2"])
     self.assertEqual(Command._parse_required_arguments("[ARG1] [ARG2]"), [])
     self.assertEqual(Command._parse_required_arguments("[ARG1] ARG2"), ["ARG2"])
     # Note: We might make our arg parsing smarter in the future and allow this type of arguments string.
     self.assertRaises(Exception, Command._parse_required_arguments, "[ARG1 ARG2]")
开发者ID:0x4d52,项目名称:JavaScriptCore-X,代码行数:6,代码来源:multicommandtool_unittest.py

示例5: __init__

 def __init__(self, **kwargs):
     Command.__init__(self, "help text", **kwargs)
     self.execute_count = 0
开发者ID:0x4d52,项目名称:JavaScriptCore-X,代码行数:3,代码来源:multicommandtool_unittest.py

示例6: __init__

 def __init__(self, **kwargs):
     Command.__init__(self, **kwargs)
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:2,代码来源:multicommandtool_unittest.py

示例7: __init__

 def __init__(self):
     options = [
         make_option("--httpd-port", action="store", type="int", default=8127, help="Port to use for the HTTP server"),
         make_option("--no-show-results", action="store_false", default=True, dest="show_results", help="Don't launch a browser with the rebaseline server"),
     ]
     Command.__init__(self, options=options)
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:6,代码来源:abstractlocalservercommand.py

示例8: __init__

 def __init__(self):
     options = [
         steps.Options.changelog_count,
     ]
     Command.__init__(self, options=options)
开发者ID:3163504123,项目名称:phantomjs,代码行数:5,代码来源:analyzechangelog.py


注:本文中的webkitpy.tool.multicommandtool.Command类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。