Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
cli: clear by notification state
Archived fintohaps opened 1 year ago

Add the ability to clear a set of rad inbox items by a notifications state.

This is achieved by introducing a field to the Clear operation to optionally clear by a state. When rad inbox clear is called, it will check if the --by-state option is used, if not then the behaviour is as before, otherwise it will get all notification ids matching the given state (and Mode) before removing all those notifications.

fintohaps opened with revision 28748764 on base 484cf022 +134 -12 1 year ago

Add the ability to clear a set of rad inbox items by a notifications state.

This is achieved by introducing a field to the Clear operation to optionally clear by a state. When rad inbox clear is called, it will check if the --by-state option is used, if not then the behaviour is as before, otherwise it will get all notification ids matching the given state (and Mode) before removing all those notifications.

fintohaps pushed revision 2 61a6333d on base 6f8d75a0 +135 -12 1 year ago

Changes:

  • Rebased
  • Avoid collecting into a Vec and then pushing to another Vec by using closures and filter_map.