preset_option.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:origin-ci-tool 作者: openshift 项目源码 文件源码
def raw_preset_option(help_action, callback):
    """
    Get an option for OpenShift version presets.

    :param help_action: the helptext for the preset option
    :param callback: the callback for the preset option
    :return: the preset option
    """
    return option(
        '--for',
        '-f',
        'preset',
        type=Choice([
            Preset.origin_master,
            Preset.ose_master,
            Preset.ose_32,
            Preset.ose_321,
            Preset.ose_33,
        ]),
        metavar='PRESET',
        expose_value=False,
        help=help_action + ' using a pre-set configuration for a specific version of OpenShift.',
        callback=callback,
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号