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,
)
评论列表
文章目录