old_contents: from django.core.management import BaseCommand
  from fabric.state import output
  import sys
  from golive.stacks.stack import StackFactory
  import yaml
  
  
  class CoreCommand(BaseCommand):
      env_id = '<env_id>'
      help = 'Manage the given environment'
      output['stdout'] = False
  
      def get_config_value(self, key):
          return self.config[key]
  
      def handle(self, *args, **options):
          job = sys.argv[1]
          if len(args) < 1:
              self.stderr.write('Missing env_id\n')
              sys.exit(1)
  
          # load user config
          environment_configfile = open("golive.yml", 'r')
          stackname = self.environment_config_temp = yaml.load(environment_configfile)['CONFIG']['STACK']
          import pdb; pdb.set_trace()
  
          self.stack = StackFactory.get(stackname)
          self.stack.setup_environment(args[0])
  
          # task decision
          task = None
          if 'task' in options:
              task = options['task']
          # role decision
          role = None
          if 'role' in options.keys():
              role = options['role']
  
          # execute
          self.stack.do(job, task=task, role=role)
  
      def end(self):
          self.stdout.write('Done\n')
  
new_contents: from django.core.management import BaseCommand
  from fabric.state import output
  import sys
  from golive.stacks.stack import StackFactory
  import yaml
  
  
  class CoreCommand(BaseCommand):
      env_id = '<env_id>'
      help = 'Manage the given environment'
      output['stdout'] = False
  
      def get_config_value(self, key):
          return self.config[key]
  
      def handle(self, *args, **options):
          job = sys.argv[1]
          if len(args) < 1:
              self.stderr.write('Missing env_id\n')
              sys.exit(1)
  
          # load user config
          environment_configfile = open("golive.yml", 'r')
          stackname = self.environment_config_temp = yaml.load(environment_configfile)['CONFIG']['STACK']
  
          self.stack = StackFactory.get(stackname)
          self.stack.setup_environment(args[0])
  
          # task decision
          task = None
          if 'task' in options:
              task = options['task']
          # role decision
          role = None
          if 'role' in options.keys():
              role = options['role']
  
          # execute
          self.stack.do(job, task=task, role=role)
  
      def end(self):
          self.stdout.write('Done\n')
  
subject: remove pdb