ui/client/features/shell/hooks/useExecutionMode
Cockpit client (features), next. Source: ui/client/features/shell/hooks/useExecutionMode.tsx.
Functions#
useExecutionMode()#
useExecutionMode(
projectKnown):string|null
Defined in: ui/client/features/shell/hooks/useExecutionMode.tsx:9
: 'engine' or 'cli', read once the project is known. Null while no project is open, the
value is unreadable, or project.execution.mode isn't set (the implicit engine default —
shown as nothing rather than a redundant label).
Parameters#
projectKnown
boolean
Returns#
string | null