bbrf-client icon indicating copy to clipboard operation
bbrf-client copied to clipboard

`bbrf $operation --force` flag

Open Regala opened this issue 4 years ago • 3 comments

Hi! This would be a simple flag to force/override operation on a document. An example would be you are trying to tag or adding a url. However, it is not in scope for the current program (maybe the scope changed in the meantime). However you'd like to force add, regardless of the scope or other non breaking validations that might exist. This would add it no matter what.

Regala avatar Nov 01 '21 10:11 Regala

Another example:

bbrf inscope remove lots.gems.org -p ibp
WARNING! This will remove 0 document(s) from your datastore and cannot be reverted.
Are you sure you want to continue? [y/N] n

By using e.g.

bbrf inscope remove rubygems.org -p ibb --force the document would be forcefully removed

For context, this is useful if you are using bbrf in script where you can't have user interaction.

Regala avatar Jul 15 '22 13:07 Regala

Hi there,

You could achieve the same using echo:

echo y | bbrf inscope remove rubygems.org -p ibb

pdelteil avatar Jul 15 '22 16:07 pdelteil

Bash. The more you know 🥲

Thanks!

On Fri, Jul 15, 2022, 17:34 Philippe Delteil @.***> wrote:

Hi there,

You could achieve the same using echo:

echo y | bbrf inscope remove rubygems.org -p ibb

— Reply to this email directly, view it on GitHub https://github.com/honoki/bbrf-client/issues/86#issuecomment-1185709621, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKRBL4RXM5SFPHUYYJ5GXLVUGHHPANCNFSM5HDVXJHQ . You are receiving this because you authored the thread.Message ID: @.***>

Regala avatar Jul 15 '22 20:07 Regala

Implemented in #ffa4bc7

honoki avatar Feb 14 '24 20:02 honoki