Function
applyWorkspace
(
relayUrl: string,
nsec?: string,
token?: string,
reposDir?: string,
)
Source from the content-addressed store, hash-verified
| 1316 | } |
| 1317 | |
| 1318 | export async function applyWorkspace( |
| 1319 | relayUrl: string, |
| 1320 | nsec?: string, |
| 1321 | token?: string, |
| 1322 | reposDir?: string, |
| 1323 | ): Promise<void> { |
| 1324 | await invokeTauri("apply_workspace", { |
| 1325 | relayUrl, |
| 1326 | nsec: nsec ?? null, |
| 1327 | token: token ?? null, |
| 1328 | reposDir: reposDir ?? null, |
| 1329 | }); |
| 1330 | } |
| 1331 | |
| 1332 | // Validate a candidate repos dir without mutating the filesystem. Rejects |
| 1333 | // with a human-readable reason; resolves for a valid or empty path. |
Tested by
no test coverage detected