def METHOD_NAME() -> None:
    '''Re-runs the current command inside the container if needed.'''
    if inside_container():
        return
    sys.stderr.write(
        '\033[91mThis command needs to be run inside the container.\033[0m\n')
    sys.stderr.write('\n')
    answer = 'n'
    if sys.stdin.isatty():
        try:
            answer = input(
                '\033[95mDo you want to run this now?\033[0m [y/N]: ')
            answer = answer.lower().strip()
        except KeyboardInterrupt:
            sys.stderr.write('\n')
    if answer != 'y':
        sys.stderr.write('\nYou can use the following command to run '
                         'it inside the container:\n\n')
        sys.stderr.write(
            f'    docker-compose exec -T frontend {shlex.join(sys.argv)}\n')
        sys.stderr.write('\n')
        sys.exit(1)
    result = subprocess.run(['docker-compose', 'exec', '-T', 'frontend'] +
                            sys.argv,
                            check=False)
    sys.exit(result.returncode)