feat: supports importing hosts from SSH config (#359)

This commit is contained in:
hstyi
2025-03-14 00:03:02 +08:00
committed by GitHub
parent 98ac2928b4
commit b283a3ea38
2 changed files with 55 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
package app.termora
import org.apache.sshd.client.config.hosts.HostConfigEntry
import kotlin.test.Test
class HostConfigEntryTest {
@Test
fun test() {
val entries = HostConfigEntry.readHostConfigEntries(HostConfigEntry.getDefaultHostConfigFile())
for (entry in entries) {
println(entry.host)
}
}
}