(runtime, options)
| 222 | GetTextCommandOptions, |
| 223 | Extract<GetCommandResult, { kind: 'text' }> |
| 224 | > = async (runtime, options): Promise<Extract<GetCommandResult, { kind: 'text' }>> => { |
| 225 | const result = await getCommand(runtime, { |
| 226 | ...options, |
| 227 | property: 'text', |
| 228 | target: options.target, |
| 229 | }); |
| 230 | if (result.kind !== 'text') { |
| 231 | throw new AppError('COMMAND_FAILED', 'getText returned non-text result'); |
| 232 | } |
| 233 | return result; |
| 234 | }; |
| 235 | |
| 236 | export const getAttrsCommand: RuntimeCommand< |
| 237 | GetAttrsCommandOptions, |
nothing calls this directly
no test coverage detected