def METHOD_NAME(output_format, tmp_path, cli_runner, chdir):
    repo_path = tmp_path / "emptydir"
    r = cli_runner.invoke(["init", repo_path])
    assert r.exit_code == 0
    with chdir(repo_path):
        r = cli_runner.invoke(["data", "ls", "-o", output_format])
        assert r.exit_code == 0, r
        if output_format == "text":
            assert r.stdout.splitlines() == [
                "Empty repository.",
                '  (use "kart import" to add some data)',
            ]
        else:
            output = json.loads(r.stdout)
            assert output == {"kart.data.ls/v1": []}