old_contents: import json
  import sys
  
  from leapp.utils.clicmd import command, command_opt, command_arg
  from leapp.logger import configure_logger
  from leapp.snactor.utils import find_project_basedir, requires_project
  from messaging.inprocess import InProcessMessaging
  from leapp.repository.scan import scan_repo
  
  
  @command('run', help='Execute the given actor')
  @command_arg('actor-name')
  @command_opt('--save-output', is_flag=True)
  @command_opt('--print-output', is_flag=True)
  @requires_project
  def cli(args):
      log = configure_logger()
      basedir = find_project_basedir('.')
      repository = scan_repo(basedir)
      repository.load()
  
      actor_logger = log.getChild('actors')
      actor = repository.lookup_actor(args.actor_name)
      messaging = InProcessMessaging()
      messaging.load(actor.consumes)
  
      actor(messaging=messaging, logger=actor_logger).run()
      if args.save_output:
          messaging.store()
      if args.print_output:
          json.dump(messaging.get_new(), sys.stdout, indent=2)
  
new_contents: import json
  import sys
  
  from leapp.utils.clicmd import command, command_opt, command_arg
  from leapp.logger import configure_logger
  from leapp.snactor.utils import find_project_basedir, requires_project
  from leapp.messaging.inprocess import InProcessMessaging
  from leapp.repository.scan import scan_repo
  
  
  @command('run', help='Execute the given actor')
  @command_arg('actor-name')
  @command_opt('--save-output', is_flag=True)
  @command_opt('--print-output', is_flag=True)
  @requires_project
  def cli(args):
      log = configure_logger()
      basedir = find_project_basedir('.')
      repository = scan_repo(basedir)
      repository.load()
  
      actor_logger = log.getChild('actors')
      actor = repository.lookup_actor(args.actor_name)
      messaging = InProcessMessaging()
      messaging.load(actor.consumes)
  
      actor(messaging=messaging, logger=actor_logger).run()
      if args.save_output:
          messaging.store()
      if args.print_output:
          json.dump(messaging.get_new(), sys.stdout, indent=2)
  
subject: Fix import