MCPcopy Create free account
hub / github.com/electric-sql/electric / assertCliEntryExists

Function assertCliEntryExists

packages/agents-desktop/src/cli/controller.ts:207–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205}
206
207async function assertCliEntryExists(): Promise<void> {
208 try {
209 await access(ELECTRIC_CLI_ENTRY_PATH, fsConstants.F_OK)
210 } catch {
211 throw new Error(
212 `Bundled Electric CLI was not found at ${ELECTRIC_CLI_ENTRY_PATH}. Run the desktop build first.`
213 )
214 }
215}
216
217function shimContents(): string {
218 return process.platform === `win32`

Callers 1

installFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected