mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
hostmanager for loading and saving hosts to defaults host.debug/.blank as static vars fix crash on disconnect by checking for connection in timer before checking if channel is open keychain layer? to convert ed25519 to seckey and back for keychain storage generate ed25519 via cryptokit
26 lines
477 B
Swift
26 lines
477 B
Swift
//
|
|
// ShhShellApp.swift
|
|
// ShhShell
|
|
//
|
|
// Created by neon443 on 02/06/2025.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct ShhShellApp: App {
|
|
@StateObject var sshHandler: SSHHandler = SSHHandler(host: Host.blank)
|
|
@StateObject var keyManager: KeyManager = KeyManager()
|
|
@StateObject var hostsManager: HostsManager = HostsManager()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView(
|
|
handler: sshHandler,
|
|
keyManager: keyManager,
|
|
hostsManager: hostsManager
|
|
)
|
|
}
|
|
}
|
|
}
|