cli/internal
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
..
authflow Tweak auth flow re: interactivity 2022-01-12 15:50:51 +01:00
build Move build to internal 2020-10-21 13:31:32 +02:00
codespaces Disallow editing a codespace that has a pending operation 2022-03-16 10:13:46 -04:00
config Consistent punctuation in command usages (#5139) 2022-01-31 10:56:12 +00:00
docs Refresh man pages 2021-12-20 18:11:31 +01:00
ghinstance Allow gh auth git-credential to authenticate GitHub Gist requests (#3064) 2022-01-14 22:18:07 +00:00
ghrepo Encode segments of gh browse resulting URL (#4663) 2021-11-18 13:10:55 +00:00
httpunix Add package httpunix 2021-06-25 11:26:21 -07:00
run Unpublish SetPrepareCmd 2021-01-28 21:59:30 +01:00
update Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00