inqurires.py 文件源码

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

项目:Harbor-CLI 作者: srishanbhattarai 项目源码 文件源码
def getchangelog():
    '''
    Opens up EDITOR, and allows user to enter changelog.
    Splits by the boilerplate text and returns user input
    '''
    branch = git.branch() or '<unavailable>'
    user = git.username() or '<unavailable>'

    data = click.edit(
        text=RELEASE_LOG_TEXT.format(branch, user),
        require_save=True
    )
    try:
        serialized = data.split(RELEASE_LOG_TEXT.format(branch, user))

        return serialized[0]
    except Exception:  # pylint: disable=broad-except
        return ''
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号