From 3a8313b4f7714b4ace188a672c094102a5642fc4 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Mon, 8 Mar 2021 22:14:29 +0800 Subject: [PATCH] Fix a typo in gh api --- pkg/cmd/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/api/api.go b/pkg/cmd/api/api.go index f04958c36..a4bbafa9c 100644 --- a/pkg/cmd/api/api.go +++ b/pkg/cmd/api/api.go @@ -131,7 +131,7 @@ func NewCmdApi(f *cmdutil.Factory, runF func(*ApiOptions) error) *cobra.Command $ gh api --preview baptiste,nebula ... # print only specific fields from the response - $ gh api repos/:owner/:repo/issues --filter '.[].title' + $ gh api repos/:owner/:repo/issues --jq '.[].title' # use a template for the output $ gh api repos/:owner/:repo/issues --template \