From 615d8f3e38b6db2f2fab29c004eee3cb15f12604 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Jun 01 2021 22:18:25 +0000 Subject: Adding the ability to request suffixed side tags Signed-off-by: Mohan Boddu --- diff --git a/src/centpkg/cli.py b/src/centpkg/cli.py index 9f58197..61202fb 100755 --- a/src/centpkg/cli.py +++ b/src/centpkg/cli.py @@ -37,6 +37,7 @@ class centpkgClient(cliClient): def setup_centos_subparsers(self): self.register_do_fork() + self.register_request_gated_side_tag() def register_do_fork(self): help_msg = 'Create a new fork of the current repository' @@ -118,3 +119,16 @@ class centpkgClient(cliClient): else: msg = "Remote with name '{0}' already exists." self.log.info(msg.format(remote_name)) + + def register_request_gated_side_tag(self): + """Register command line parser for subcommand request-gated-side-tag""" + parser = self.subparsers.add_parser( + "request-gated-side-tag", + help="Create a new dynamic gated side tag", + ) + parser.add_argument("--base-tag", help="name of base tag") + parser.set_defaults(command=self.request_gated_side_tag) + + def request_gated_side_tag(self): + self.args.suffix = "stack-gate" + super(centpkgClient, self).request_side_tag()