Make a new debug function to help delegation

This commit is contained in:
Jobobby04 2020-08-10 21:15:48 -04:00
parent aae23f5ef3
commit f8efe5d189

View File

@ -183,6 +183,10 @@ object DebugFunctions {
"${it.id}: ${it.name} (${it.lang.toUpperCase()})"
}
fun listAllSourcesClassName() = sourceManager.getCatalogueSources().joinToString("\n") {
"${it::class.qualifiedName}: ${it.name} (${it.lang.toUpperCase()})"
}
fun listVisibleSources() = sourceManager.getVisibleCatalogueSources().joinToString("\n") {
"${it.id}: ${it.name} (${it.lang.toUpperCase()})"
}