lrossett / centos / centpkg

Forked from centos/centpkg 2 years ago
Clone
85a850
'''
85a850
    Command line behavior for centpkg
85a850
'''
85a850
#
85a850
# Author(s):
85a850
#            Jesse Keating <jkeating@redhat.com>
85a850
#            Pat Riehecky <riehecky@fnal.gov>
85a850
#            Brian Stinson <bstinson@ksu.edu>
85a850
#
85a850
# This program is free software; you can redistribute it and/or modify it
85a850
# under the terms of the GNU General Public License as published by the
85a850
# Free Software Foundation; either version 2 of the License, or (at your
85a850
# option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
85a850
# the full text of the license.
85a850
a394b1
from __future__ import print_function
Brian Stinson aa8548
from pyrpkg.cli import cliClient
Brian Stinson aa8548
a394b1
Brian Stinson aa8548
class centpkgClient(cliClient):
a394b1
    def __init__(self, config, name=None):
a394b1
        self.DEFAULT_CLI_NAME = 'centpkg'
Brian Stinson aa8548
        super(centpkgClient, self).__init__(config, name)
Brian Stinson 3edf28
Brian Stinson 3edf28
        self.setup_centos_subparsers()
Brian Stinson 3edf28
Brian Stinson 3edf28
    def setup_centos_subparsers(self):
Brian Stinson 3edf28
        self.register_parser()
Brian Stinson 3edf28
Brian Stinson 3edf28
    def register_parser(self):
Michal Konečný 0d832c
        pass
Brian Stinson 3edf28
Michal Konečný 0d832c
Michal Konečný 0d832c
class centpkgClientSig(cliClient):
Michal Konečný 0d832c
    def __init__(self, config, name=None):
Michal Konečný 0d832c
        self.DEFAULT_CLI_NAME = 'centpkg-sig'
Michal Konečný 0d832c
        super(centpkgClientSig, self).__init__(config, name)
Michal Konečný 0d832c
Michal Konečný 0d832c
        self.setup_centos_subparsers()
Michal Konečný 0d832c
Michal Konečný 0d832c
    def setup_centos_subparsers(self):
Michal Konečný 0d832c
        self.register_parser()
Michal Konečný 0d832c
Michal Konečný 0d832c
    def register_parser(self):
Michal Konečný 0d832c
        pass