static void listRepositories(File repositoriesRootDir, boolean includeUserAccessDetails) {
		String[] names = RepositoryManager.getRepositoryNames(repositoriesRootDir);
		System.out.println("\nRepositories:");
		if (names.length == 0) {
			System.out.println("   <No repositories have been created>");
			return;
		}

		for (String name : names) {
			File repoDir = new File(repositoriesRootDir, NamingUtilities.mangle(name));
			String rootPath = repoDir.getAbsolutePath();
			boolean isIndexed = IndexedLocalFileSystem.isIndexed(rootPath);
			String type;
			if (isIndexed || IndexedLocalFileSystem.hasIndexedStructure(rootPath)) {
				type = "Indexed Filesystem";
				try {
					int indexVersion = IndexedLocalFileSystem.readIndexVersion(rootPath);
					if (indexVersion == IndexedLocalFileSystem.LATEST_INDEX_VERSION) {
						type = null;
					}
					else {
						type += " (V" + indexVersion + ")";
					}
				}
				catch (IOException e) {
					type += "(unknown)";
				}
			}
			else {
				type = "Mangled Filesystem";
			}

			System.out.println("  " + name + (type == null ? "" : (" - uses " + type)));

			if (includeUserAccessDetails) {
				System.out.print(Repository.getFormattedUserPermissions(repoDir, "    "));
			}
		}
	}
Print to stdout the set of repository names defined within the specified repositories root.
This is intended to be used with the svrAdmin console command
@param repositoriesRootDir repositories root directory
@param includeUserAccessDetails if true additional user access details will displayed 
for each repository
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/RepositoryManager.java