cli/pkg/cmd
Mislav Marohnić ead6bf87d9 api: handle HTTP 409 error message from the server
Previously, "errors" field was either an array of strings or an array of
error objects. This covers an additional case when "errors" is a string:

    $ gh api orgs/cli/actions/permissions/repositories
    {
      "message": "Conflict",
      "errors": "Actions are enabled for all repositories",
      "documentation_url": "https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization"
    }
2021-12-06 19:54:54 +01:00
..
actions Mark actions command as non-runnable 2021-11-03 16:58:51 +01:00
alias Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
api api: handle HTTP 409 error message from the server 2021-12-06 19:54:54 +01:00
auth Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
browse Encode segments of gh browse resulting URL (#4663) 2021-11-18 13:10:55 +00:00
codespace Fix codespace code command under WSL (#4747) 2021-11-24 16:18:24 +00:00
completion Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
config linter complains again 2021-11-16 10:43:25 -08:00
extension 💅 simplify filesystem operations while creating extensions 2021-11-24 13:46:36 +01:00
factory Avoid resolving executable() until requested at runtime 2021-09-24 14:42:41 +02:00
gist Repace shurcool/graphql with cli/shurcool-graphql 2021-11-17 12:57:43 -08:00
gpg-key Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
issue Improve issue view re: overfetching, PR support 2021-11-24 18:49:36 +01:00
pr pr diff: support very long lines 2021-12-01 17:03:11 +01:00
release Allow downloading the archive of the latest release 2021-11-30 15:52:51 +01:00
repo Merge pull request #4750 from cli/replace-shurcool 2021-11-18 09:10:06 -08:00
root Inherit API endpoint configuration from the Codespaces environment (#4723) 2021-11-22 12:40:01 +01:00
run Add FlagErrorf; encapsulate FlagError.error 2021-10-21 11:40:20 -04:00
secret Support setting user Codespaces secrets (#4699) 2021-11-18 12:55:24 +01:00
ssh-key Don't swallow duplicate key error (#4807) 2021-11-25 13:22:42 +01:00
version Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
workflow Escape workflow information when generating URLs 2021-11-18 12:17:59 -08:00