ui/client/features/shell/services/ProjectApi
Cockpit client (features), next. Source: ui/client/features/shell/services/ProjectApi.ts.
Functions#
closeProjectDir()#
closeProjectDir():
Promise<string|null>
Defined in: ui/client/features/shell/services/ProjectApi.ts:27
Points the whole UI at another local project (POST /api/settings; only projectDir is sent, other settings are left alone). Returns an error message or null.
Returns#
Promise<string | null>
fetchExecutionMode()#
fetchExecutionMode():
Promise<string|null>
Defined in: ui/client/features/shell/services/ProjectApi.ts:16
: which mode the open project runs core activities in, 'engine' (default, in-process) or
'cli' (the real construct binary as a subprocess). Null when no project is open or the value
can't be read.
Returns#
Promise<string | null>
fetchProjectDir()#
fetchProjectDir():
Promise<string|null>
Defined in: ui/client/features/shell/services/ProjectApi.ts:4
The current project directory (ui/server GET /api/settings).
Returns#
Promise<string | null>
switchProjectDir()#
switchProjectDir(
projectDir):Promise<string|null>
Defined in: ui/client/features/shell/services/ProjectApi.ts:32
Parameters#
projectDir
string
Returns#
Promise<string | null>