Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add an example to gh api --help demonstrating usage of --input #9104

Copy link
Copy link
@williammartin

Description

@williammartin
Issue body actions

Description

As mentioned in #8983, when it becomes challenging to use -f and -F to construct the exact JSON request body for gh api, the best option is to fallback to constructing JSON externally and to pass that via the --input flag.

#8983 (comment) suggests that we add to the example section of gh api --help to make this more obvious, and that seems like a great idea. The code to change is here:

Example: heredoc.Doc(`

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsgh-apirelating to the gh api commandrelating to the gh api command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.