sync_options.py 文件源码

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

项目:origin-ci-tool 作者: openshift 项目源码 文件源码
def sync_source_option(func):
    """
    Add the sync source option to the decorated command func.

    :param func: Click CLI command to decorate
    :return: decorated CLI command
    """
    return option(
        '--src',
        '-s',
        'sync_source',
        type=Path(
            exists=True,
            file_okay=False,
            resolve_path=True,
        ),
        help='Local directory from which to sync. Optional.',
    )(func)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号