Removed useless getconfig mode.
authorEd Bartosh <eduard.bartosh@intel.com>
Tue, 29 May 2012 10:11:27 +0000 (13:11 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Mon, 4 Jun 2012 10:22:39 +0000 (13:22 +0300)
Change-Id: I50d3f7d522f9bdc16d18d486145f288253955f4d

tools/gbs

index 8bc0ede..5c99126 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -278,34 +278,6 @@ class Gbs(cmdln.Cmdln):
         from gitbuildsys import cmd_changelog as cmd
         cmd.do(opts, args)
 
-    @cmdln.alias('cfg')
-    @cmdln.option('-s', '--section',
-                        metavar='SECTION',
-                        default='general',
-                        help='specify the section inside config file, ' \
-                             'use "general" as the default')
-    def do_getconfig(self, _subcmd, opts, *args):
-        """${cmd_name}: query values of config file
-
-        Usage:
-            gbs getconfig <opt1> [<opt2> ...]
-
-        ${cmd_option_list}
-        """
-
-        if not args:
-            raise errors.Usage('argument(s) expected')
-
-        for arg in args:
-            val = configmgr.get(arg, section=opts.section)
-            if val:
-                msger.verbose('The value of opt "%s" in [%s] is:' \
-                              % (arg, opts.section))
-                msger.raw(val)
-            else:
-                msger.verbose('No value for opt key "%s" in [%s]' \
-                              % (arg, opts.section))
-                msger.raw('') # we need a blank line
 
 if __name__ == '__main__':
     try: