def METHOD_NAME(context, args, cwd):
    """
    :type context: behave.runner.Context
    :type args: list
    :type cwd: str
    """
    if args[1] == 'push':
        if '-f' in args:
            manifest = os.path.join(cwd, args[args.index('-f') + 1])
            with open(manifest, 'r', encoding='utf-8-sig') as f:
                doc = f.read()
            match = re.search(r'- name:\s+(\S+)', doc)
            if match:
                app = match.group(1)
                # args += ['--hostname', dns.resolve_hostname(context, app)] <-- deprecated in cf cli v7, now requires use of cf map-route comman