dotnet / arcade-services

Arcade Engineering Services
MIT License
60 stars 74 forks source link

darc delete-default-channel should allow for mass deletion #2512

Open mmitche opened 3 years ago

mmitche commented 3 years ago

delete-subscriptions and a few other commands have 'mass' modes, where they match inputs on a subset of parameters, confirm the deletion, and then mass delete. delete-default-channel is missing this functionality. This is somewhat annoying because deleting an entire set of default channels is reasonably common (cleaning up old flow). Suggest doing the following:

  1. Add a new command delete-default-channels which does (use the same behavior as delete-subscriptions)r:
    • Matches the input parameters on substring, except if --id is used.
    • Add an --exact switch, and match on exact strings if passed.
    • Add confirmation of delete, unless --quiet is passed
  2. Redirect delete-default-channel to delete-default-channels and add a message about deprecation.
markwilkie commented 3 years ago

Added to the dependency flow epic.