( client: AgentDeviceClient, name: CommandName, input: unknown, )
| 12 | ); |
| 13 | |
| 14 | export async function runCommand( |
| 15 | client: AgentDeviceClient, |
| 16 | name: CommandName, |
| 17 | input: unknown, |
| 18 | ): Promise<unknown> { |
| 19 | return await getCommandDefinition(name).invoke(client, input); |
| 20 | } |
| 21 | |
| 22 | export function listExecutableCommandNames(): CommandName[] { |
| 23 | return [...commandMap.keys()].sort(); |
no test coverage detected