Skip to content

fix(cli): more robust handling of multiple deletions #3102

Description

@grs

User Story

As an OpenShell CLI user deleting multiple resources (sandboxes, providers or provider profiles) in a single invocation, I want the CLI to handle and notify me of any error deleting one of the resources, but to continue iterating over the list.

Problem Statement

At present the first error on deletion stops iteration over the resources to be deleted. This means deletion of any remaining resources requires invoking the command again with a shortened list.

Impact / Why This Matters

This is a minor usability issue, but handling it well makes scripts and interactive use less arduous.

Acceptance Criteria

  • deletion of a list of resources where one or more is invalid should still delete all those that are valid
  • experience should be consistent across sandboxes, providers and provider profiles

Reproduction Steps

  • attempt to delete a number of resources, with one invalid name in the middle of the list
  • observe that after failing on the invalid item, deletion of subsequent items is not attempted

Environment

N/A

Logs

Activity

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

    state:acceptedA maintainer decided OpenShell should pursue this issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions