Skip to content

Get codepsaces name I am running on #2

Description

@rulasg

extract the codespace you are running on

> gh cs view --json name | ConvertFrom-Json | select -ExpandProperty name
fuzzy-waffle-v6v6gqgj7vjx3x7w5

This will allow to pipe this command to Remove-CodeSpace

Get-Codespace | Remove-Codespace

Equivalent to

gh cs delete -c $(gh cs view --json name | ConvertFrom-Json | select -ExpandProperty name)

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions