cli/pkg
Charlie Andrews 5ffe838dce Disallow any port operations when codespace has pending operation
Since all of the port operations require the codespace to be running, we
need to disallow these operations when there's a pending op since we
can't start the codespace in this state.

Since the API already disallows this, this is basically cleaning up the
error messages that the user sees in this state

Old error message:

```
$ gh cs ports forward 80:80
? Choose codespace: redacted
Starting codespace â£ğerror connecting to codespace: error starting 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/start)
```

New error message:

```
$ gh cs ports forward 80:80
? Choose codespace: redacted
codespace is disabled while it has a pending operation: Changing machine types...
exit status 1
```
2022-03-15 17:27:38 -04:00
..
cmd Disallow any port operations when codespace has pending operation 2022-03-15 17:27:38 -04:00
cmdutil Add top level search command and search repos sub command (#5172) 2022-03-09 12:24:27 +00:00
export Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
extensions Add version to extension list command (#5219) 2022-03-07 07:14:26 +00:00
findsh go fmt 2021-12-02 16:12:24 +01:00
githubsearch Convert bool to string early for pr list draft flag 2021-09-20 11:29:37 -07:00
githubtemplate Use T.TempDir for temporary dirs in tests (#3580) 2021-05-07 12:21:26 +02:00
httpmock Add top level search command and search repos sub command (#5172) 2022-03-09 12:24:27 +00:00
iostreams Fix HexToRGB panic (#5247) 2022-03-01 14:37:10 +00:00
jsoncolor Fix "null" display in colored JSON output 2021-05-12 16:56:52 +02:00
liveshare Fix flaky liveshare session test (#5111) 2022-01-27 11:20:50 -05:00
markdown Preserve newlines in GitHub-flavored markdown 2022-01-13 19:41:01 +01:00
prompt Have NewAskStubber perform auto-cleanup 2022-01-14 18:52:00 +01:00
search Add top level search command and search repos sub command (#5172) 2022-03-09 12:24:27 +00:00
set Add GH_HOST to hosts list if it has corresponding auth token (#5087) 2022-01-29 07:37:24 +00:00
surveyext Add --generate-notes flag to gh release create command. (#4467) 2021-12-08 15:20:59 +04:00
text Add top level search command and search repos sub command (#5172) 2022-03-09 12:24:27 +00:00