finish SSH key support

This commit is contained in:
2024-07-03 14:54:10 -04:00
parent 00089d7efb
commit 9fd355b68e
17 changed files with 314 additions and 372 deletions

View File

@ -21,7 +21,7 @@ use crate::{
config::{self, AppConfig},
credentials::AppSession,
ipc,
server::{Server, Agent},
srv::{creddy_server, agent},
errors::*,
shortcuts,
state::AppState,
@ -105,8 +105,8 @@ async fn setup(app: &mut App) -> Result<(), Box<dyn Error>> {
};
let app_session = AppSession::load(&pool).await?;
Server::start(app.handle().clone())?;
Agent::start(app.handle().clone())?;
creddy_server::serve(app.handle().clone())?;
agent::serve(app.handle().clone())?;
config::set_auto_launch(conf.start_on_login)?;
if let Err(_e) = config::set_auto_launch(conf.start_on_login) {