Skip to content

Allow a range of ids when removing entries plus ask for confirmation #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pythonhacker opened this issue Dec 12, 2021 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@pythonhacker
Copy link
Owner

$ varuh -R 21
Entry with id 21 was removed from the database

Two things here.

  1. Should ask for confirmation or force confirm by passing in a -y flag
  2. Allow range of ids to be removed say something like,
$ varuh -R 21 22 23
OR
$ varuh -R 21-23

which will remove IDs in range 21 to 23 (21,22,23).

@pythonhacker pythonhacker added the enhancement New feature or request label Dec 12, 2021
pythonhacker pushed a commit that referenced this issue Dec 13, 2021
@pythonhacker
Copy link
Owner Author

$ ./varuh -R 20
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Title: Github Personal Token
User: pythonhacker
URL: https://github.com
Modified: 2021-21-30 23:08:09
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please confirm removal [Y/n]: : n
Removal of entry canceled by user.

$ ./varuh -R 1-3
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Title: XYZ1
User: uname1
URL: https://xyz1.com
Modified: 2021-21-16 15:40:29
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please confirm removal [Y/n]: : n
Removal of entry canceled by user.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Title: XYZ2
User: uname2
URL: https://xyz2.com
Modified: 2021-21-18 12:44:10
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please confirm removal [Y/n]: : n
Removal of entry canceled by user.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Title: XYZ3
User: uname3
URL: https://xyz3.com
Modified: 2021-21-19 14:16:33
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please confirm removal [Y/n]: : n
Removal of entry cancelled by user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant