Skip to content

Print message after codespace delete #7348

Closed

Description

@kousikmitra

Describe the feature or problem you’d like to solve

Currently once the codespace is deleted the command does not print any message after successful deletion. It would be nice if the gh cs delete command prints a message after successfully deletion of one or more than one codespace.

Proposed solution

If a single codespace is deleted then show codespace display name
Successfully deleted cli/cli (trunk): refactored adventure

Edit: Alternatively we can do
Successfully deleted kousikmitra-refactored-adventure-abc123xyz

If multiple codespace is delete then show a count of deleted codespaces.
`Successfully deleted 5 codespaces"

Additional context

NA

Add any other context like screenshots or mockups are helpful, if applicable.
NA

Activity

  1. mislav commented on Apr 23, 2023

    @mislav
    Contributor

    Not a bad idea, thanks! I like especially in the case of deleting multiple codespaces to print out the number of deleted codespaces.

    The confirmation message should be added after this block, and only if stout is connected to a terminal

    return a.RunWithProgress(progressLabel, func() error {

    /cc @cli/codespaces

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions