mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
dependency injection in ShhShellApp via the init
added keymanager to sshhandler so it can access keys
This commit is contained in:
@@ -49,9 +49,10 @@ struct ContentView: View {
|
||||
}
|
||||
|
||||
#Preview {
|
||||
let keymanager = KeyManager()
|
||||
ContentView(
|
||||
handler: SSHHandler(host: Host.debug),
|
||||
handler: SSHHandler(host: Host.debug, keyManager: keymanager),
|
||||
hostsManager: HostsManager(),
|
||||
keyManager: KeyManager()
|
||||
keyManager: keymanager
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user