mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
Adding the ability to request suffixed side tags
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
parent
f9865a0d3c
commit
615d8f3e38
1 changed files with 14 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue