cli/internal/codespaces
Charlie Andrews 7ca31e02b4 Disallow editing a codespace that has a pending operation
This is already prevented by the API, but this will make the error
message cleaner and easier to understand for the user.

Example of old error message:

```
$ gh cs edit -c cwndrws-redacted -d "some silly name"
error editing codespace: HTTP 422: your codespace has an operation pending: updating to a sku with a different amount of storage; please wait until this operation is complete (https://api.github.com/user/codespaces/cwndrws-redacted)
exit status 1

```

Example of new error message:

```
$ gh cs edit -c cwndrws-redacted -d "some silly name"
error editing codespace: codespace is disabled while it has a pending operation: Changing machine types...
exit status 1
```
2022-03-16 10:13:46 -04:00
..
api Disallow editing a codespace that has a pending operation 2022-03-16 10:13:46 -04:00
codespaces.go codespace: progress indication, logging (#4555) 2021-10-21 18:04:04 +02:00
ssh.go codespace: progress indication, logging (#4555) 2021-10-21 18:04:04 +02:00
ssh_test.go Switch if block logic, assert err string 2021-09-17 15:04:55 -04:00
states.go Rename errors from Live Share to generic codespace 2021-11-08 13:35:48 +00:00