from cement.core.foundation import CementApp
import command
import util.config

util.config.Configuration()


class Manager(CementApp):
    class Meta:
        label = 'QLDS-Manager'
        handlers = [
            command.default.ManagerBaseController,
            command.setup.SetupController
        ]


with Manager() as app:
    app.run()

from cement.core.foundation import CementApp
import command
import util.config

class Manager(CementApp):
    class Meta:
        label = 'QLDS-Manager'
        handlers = command.commands


with Manager() as app:
    app.run()

Use handlers defined in command package
Use handlers defined in command package

  from cement.core.foundation import CementApp
  import command
  import util.config
  
- util.config.Configuration()
- 
- 
  class Manager(CementApp):
      class Meta:
          label = 'QLDS-Manager'
+         handlers = command.commands
-         handlers = [
-             command.default.ManagerBaseController,
-             command.setup.SetupController
-         ]
  
  
  with Manager() as app:
      app.run()
  
Use handlers defined in command package
## Code Before:
from cement.core.foundation import CementApp
import command
import util.config

util.config.Configuration()


class Manager(CementApp):
    class Meta:
        label = 'QLDS-Manager'
        handlers = [
            command.default.ManagerBaseController,
            command.setup.SetupController
        ]


with Manager() as app:
    app.run()

## Instruction:
Use handlers defined in command package
## Code After:
from cement.core.foundation import CementApp
import command
import util.config

class Manager(CementApp):
    class Meta:
        label = 'QLDS-Manager'
        handlers = command.commands


with Manager() as app:
    app.run()
