MCPcopy Index your code
hub / github.com/callstack/agent-device / homeCommand

Function homeCommand

src/commands/system/runtime/system.ts:156–167  ·  view source on GitHub ↗
(runtime, options = {})

Source from the content-addressed store, hash-verified

154 SystemHomeCommandOptions | undefined,
155 SystemHomeCommandResult
156> = async (runtime, options = {}): Promise<SystemHomeCommandResult> => {
157 if (!runtime.backend.pressHome) {
158 throw new AppError('UNSUPPORTED_OPERATION', 'system.home is not supported by this backend');
159 }
160 const backendResult = await runtime.backend.pressHome(toBackendContext(runtime, options));
161 const formattedBackendResult = toBackendResult(backendResult);
162 return {
163 kind: 'systemHome',
164 ...(formattedBackendResult ? { backendResult: formattedBackendResult } : {}),
165 ...successText('Home'),
166 };
167};
168
169export const rotateCommand: RuntimeCommand<
170 SystemRotateCommandOptions,

Callers

nothing calls this directly

Calls 3

toBackendContextFunction · 0.90
toBackendResultFunction · 0.90
successTextFunction · 0.90

Tested by

no test coverage detected