mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 10:22:58 +08:00
feat: supports importing hosts from SSH config (#359)
This commit is contained in:
14
src/test/kotlin/app/termora/HostConfigEntryTest.kt
Normal file
14
src/test/kotlin/app/termora/HostConfigEntryTest.kt
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user