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


Python Command.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from webkitpy.tool.multicommandtool import Command [as 别名]
# 或者: from webkitpy.tool.multicommandtool.Command import __init__ [as 别名]
 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,代码行数:10,代码来源:upload.py

示例2: __init__

# 需要导入模块: from webkitpy.tool.multicommandtool import Command [as 别名]
# 或者: from webkitpy.tool.multicommandtool.Command import __init__ [as 别名]
    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,代码行数:13,代码来源:suggestnominations.py

示例3: __init__

# 需要导入模块: from webkitpy.tool.multicommandtool import Command [as 别名]
# 或者: from webkitpy.tool.multicommandtool.Command import __init__ [as 别名]
 def __init__(self):
     self._sequence = StepSequence(self.steps)
     Command.__init__(self, self._sequence.options())
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:5,代码来源:abstractsequencedcommand.py

示例4: __init__

# 需要导入模块: from webkitpy.tool.multicommandtool import Command [as 别名]
# 或者: from webkitpy.tool.multicommandtool.Command import __init__ [as 别名]
 def __init__(self, **kwargs):
     Command.__init__(self, "help text", **kwargs)
     self.execute_count = 0
开发者ID:0x4d52,项目名称:JavaScriptCore-X,代码行数:5,代码来源:multicommandtool_unittest.py

示例5: __init__

# 需要导入模块: from webkitpy.tool.multicommandtool import Command [as 别名]
# 或者: from webkitpy.tool.multicommandtool.Command import __init__ [as 别名]
 def __init__(self, **kwargs):
     Command.__init__(self, **kwargs)
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:4,代码来源:multicommandtool_unittest.py

示例6: __init__

# 需要导入模块: from webkitpy.tool.multicommandtool import Command [as 别名]
# 或者: from webkitpy.tool.multicommandtool.Command import __init__ [as 别名]
 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,代码行数:8,代码来源:abstractlocalservercommand.py

示例7: __init__

# 需要导入模块: from webkitpy.tool.multicommandtool import Command [as 别名]
# 或者: from webkitpy.tool.multicommandtool.Command import __init__ [as 别名]
 def __init__(self):
     options = [
         steps.Options.changelog_count,
     ]
     Command.__init__(self, options=options)
开发者ID:3163504123,项目名称:phantomjs,代码行数:7,代码来源:analyzechangelog.py


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