def METHOD_NAME():
    runner = CliRunner()
    with runner.isolated_filesystem():
        os.mkdir("existing_dir")
        result = runner.invoke(scaffold_repository_command, ["--name", "existing_dir"])
        assert re.match(r"The directory .* already exists", result.output)
        assert result.exit_code != 0