diff --git a/memos/remove.py b/memos/remove.py index 6df0e39..1d2f23c 100644 --- a/memos/remove.py +++ b/memos/remove.py @@ -6,6 +6,9 @@ @click.argument('memo_id') def remove_command(memo_id): """Removes a memo""" + confirm = click.confirm('Are you sure you want to remove this memo?') + if not confirm: + return deleted = Memo().delete(memo_id) if not deleted: click.echo(f'Cannot remove memo with id {memo_id}', err=True) diff --git a/pyproject.toml b/pyproject.toml index 164e75e..685c37f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "memos-cli" -version = "0.1.1" +version = "0.1.2" description = "A CLI frontend for memos self-hosted memo hub" authors = ["Giulio De Matteis "] readme = "README.md"