cli.py 文件源码

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

项目:zotero-cli 作者: jbaiter 项目源码 文件源码
def add_note(ctx, item_id, note_format):
    """ Add a new note to an existing item. """
    if note_format:
        ctx.obj.note_format = note_format
    try:
        item_id = pick_item(ctx.obj, item_id)
    except ValueError as e:
        ctx.fail(e.args[0])
    note_body = click.edit(extension=get_extension(ctx.obj.note_format))
    if note_body:
        ctx.obj.create_note(item_id, note_body)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号