(runtime, options = {})
| 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 | |
| 169 | export const rotateCommand: RuntimeCommand< |
| 170 | SystemRotateCommandOptions, |
nothing calls this directly
no test coverage detected