registry-cli icon indicating copy to clipboard operation
registry-cli copied to clipboard

Basic deletion use cases not supported?

Open LisannaAtHome opened this issue 7 years ago • 3 comments

I don't seem to understand how to use this tool. My use case is very simple: delete all tags for an image except a few specified ones. This does not appear to work. If I have an image foo with tags bar, baz, and bez, and specify "--num 0 --delete --tags-like "b" --keep-tags bar baz, it instead decides to keep all of the tags. Not setting --num 0 doesn't appear to help.

LisannaAtHome avatar Dec 08 '17 18:12 LisannaAtHome

Setting --num 1 causes it to try to delete baz and bez, even though I explicitly specified that it should keep baz.

LisannaAtHome avatar Dec 08 '17 18:12 LisannaAtHome

Looks like you've found a bug. Congratulations ;). That kind of use cases was not tested. Let me try this out and revert back to you.

9 дек. 2017 г. 0:41 пользователь "Lisanna Dettwyler" < [email protected]> написал:

Setting --num 1 causes it to try to delete baz and bez, even though I explicitly specified that it should keep baz.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andrey-pohilko/registry-cli/issues/35#issuecomment-350339563, or mute the thread https://github.com/notifications/unsubscribe-auth/AQTQ-xOwjF3MkMZDNBKNtQ6bcGfCB8Ueks5s-YK7gaJpZM4Q7fET .

andrey-pohilko avatar Dec 08 '17 18:12 andrey-pohilko

Hi @ledettwy you can you --delete-by-hours with 1 hour and use --keep-tags. This should work as you expected. For the test, use --dry option.

ipavlushin avatar Mar 17 '18 12:03 ipavlushin