Replace the default workspace with a home screen (#660)

This commit is contained in:
Gregory Schier
2026-09-15 13:33:57 -07:00
committed by GitHub
parent 8a6e4810fd
commit 06142d007a
19 changed files with 560 additions and 40 deletions
+9
View File
@@ -3,7 +3,9 @@
use crate::error::Result;
use crate::host::Host;
use std::path::Path;
use yaak::example::create_example_workspace;
use yaak::export::{self, ExportDataParams};
use yaak_models::util::BatchUpsertResult;
use yaak_rpc_schema::*;
use yaak_templates::format_json::format_json;
@@ -18,6 +20,13 @@ pub async fn cmd_export_data<H: Host>(host: H, req: CmdExportDataReq) -> Result<
})?)
}
pub async fn cmd_create_example_workspace<H: Host>(
host: H,
_req: CmdCreateExampleWorkspaceReq,
) -> Result<BatchUpsertResult> {
Ok(create_example_workspace(host.query_manager(), &host.update_source())?)
}
pub async fn cmd_format_json<H: Host>(_host: H, req: CmdFormatJsonReq) -> Result<String> {
Ok(format_json(&req.text, " "))
}