From cd1ddb86b5ba9d73a810871499fa4a6fd9c47add Mon Sep 17 00:00:00 2001 From: Norwin Date: Sat, 26 Oct 2019 14:25:54 +0000 Subject: [PATCH] fix -o flag (#53) --- cmd/issues.go | 4 ++-- cmd/pulls.go | 6 ++---- cmd/releases.go | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/cmd/issues.go b/cmd/issues.go index 45c7e2e..fd37160 100644 --- a/cmd/issues.go +++ b/cmd/issues.go @@ -93,7 +93,7 @@ func runIssuesList(ctx *cli.Context) error { var values [][]string if len(issues) == 0 { - Output(output, headers, values) + Output(outputValue, headers, values) return nil } @@ -112,7 +112,7 @@ func runIssuesList(ctx *cli.Context) error { }, ) } - Output(output, headers, values) + Output(outputValue, headers, values) return nil } diff --git a/cmd/pulls.go b/cmd/pulls.go index bb5e499..b688674 100644 --- a/cmd/pulls.go +++ b/cmd/pulls.go @@ -13,8 +13,6 @@ import ( "github.com/urfave/cli" ) -var output string - // CmdPulls represents to login a gitea server. var CmdPulls = cli.Command{ Name: "pulls", @@ -46,7 +44,7 @@ func runPulls(ctx *cli.Context) error { var values [][]string if len(prs) == 0 { - Output(output, headers, values) + Output(outputValue, headers, values) return nil } @@ -68,7 +66,7 @@ func runPulls(ctx *cli.Context) error { }, ) } - Output(output, headers, values) + Output(outputValue, headers, values) return nil } diff --git a/cmd/releases.go b/cmd/releases.go index 76d40b9..60f24f1 100644 --- a/cmd/releases.go +++ b/cmd/releases.go @@ -44,7 +44,7 @@ func runReleases(ctx *cli.Context) error { var values [][]string if len(releases) == 0 { - Output(output, headers, values) + Output(outputValue, headers, values) return nil } @@ -59,7 +59,7 @@ func runReleases(ctx *cli.Context) error { }, ) } - Output(output, headers, values) + Output(outputValue, headers, values) return nil }