Exemplo n.º 1
0
 def __init__(self):
     commands = [
         RegisterCommand,
         UnRegisterCommand,
         AddonsCommand,
         ConfigCommand,
         ListCommand,
         IdentityCommand,
         OwnersCommand,
         RefreshCommand,
         CleanCommand,
         RedeemCommand,
         ReposCommand,
         ReleaseCommand,
         StatusCommand,
         EnvironmentsCommand,
         ImportCertCommand,
         ServiceLevelCommand,
         VersionCommand,
         RemoveCommand,
         AttachCommand,
         PluginsCommand,
         AutohealCommand,
         OverrideCommand,
         RoleCommand,
         UsageCommand,
         FactsCommand,
         SyspurposeCommand,
     ]
     CLI.__init__(self, command_classes=commands)
Exemplo n.º 2
0
 def main(self):
     managerlib.check_identity_cert_perms()
     ret = CLI.main(self)
     # Try to enable all yum plugins (subscription-manager and plugin-id)
     enabled_yum_plugins = YumPluginManager.enable_pkg_plugins()
     if len(enabled_yum_plugins) > 0:
         print("\n" + _("WARNING") + "\n\n" + YumPluginManager.warning_message(enabled_yum_plugins) + "\n")
     # Try to flush all outputs, see BZ: 1350402
     try:
         sys.stdout.flush()
         sys.stderr.flush()
     except IOError as io_err:
         log.error("Error: Unable to print data to stdout/stderr output during exit process: %s" % io_err)
     return ret
Exemplo n.º 3
0
 def __init__(self):
     commands = [SystemCommand]
     CLI.__init__(self, commands)
Exemplo n.º 4
0
 def __init__(self):
     commands = [CatCertCommand, CatManifestCommand, StatCertCommand, DumpManifestCommand]
     CLI.__init__(self, commands)
Exemplo n.º 5
0
Arquivo: cli.py Projeto: Lorquas/rhsm
 def __init__(self):
     commands = [
         CatCertCommand, CatManifestCommand, StatCertCommand,
         DumpManifestCommand
     ]
     CLI.__init__(self, commands)
Exemplo n.º 6
0
 def __init__(self):
     commands = [SystemCommand]
     CLI.__init__(self, commands)
Exemplo n.º 7
0
 def __init__(self):
     commands = [CatCertCommand]
     CLI.__init__(self, commands)