From 568fde1ce56787435e9c2b4b79b9b978b4435194 Mon Sep 17 00:00:00 2001 From: Norwin Date: Thu, 13 May 2021 02:32:20 +0800 Subject: [PATCH] Add missing flags to org & labels subcommands (#357) The `tea orgs` command is an alias to `tea orgs list`, and as such should have the same flags. fixes #354 Co-authored-by: Norwin Roosen Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/357 Reviewed-by: Lunny Xiao Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: Norwin Co-committed-by: Norwin --- cmd/labels.go | 1 + cmd/organizations.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/labels.go b/cmd/labels.go index bb27cb1..07098c1 100644 --- a/cmd/labels.go +++ b/cmd/labels.go @@ -25,6 +25,7 @@ var CmdLabels = cli.Command{ &labels.CmdLabelUpdate, &labels.CmdLabelDelete, }, + Flags: labels.CmdLabelsList.Flags, } func runLabels(ctx *cli.Context) error { diff --git a/cmd/organizations.go b/cmd/organizations.go index 3ad8687..b879a13 100644 --- a/cmd/organizations.go +++ b/cmd/organizations.go @@ -25,6 +25,7 @@ var CmdOrgs = cli.Command{ &organizations.CmdOrganizationList, &organizations.CmdOrganizationDelete, }, + Flags: organizations.CmdOrganizationList.Flags, } func runOrganizations(ctx *cli.Context) error {