Skip to content

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

Closed

Description

@pythonhacker
$ 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).

Activity

  1. added 2 commits that reference this issue on Dec 13, 2021
  2. pythonhacker commented on Dec 14, 2021

    @pythonhacker
    OwnerAuthor
    $ ./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.
    
  3. added 5 commits that reference this issue on Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions