import assert from "node:assert" ; import { ReadonlyDeep , } from "type-fest" ; import CameraHelper from "../camera-helper.js" ; import { Command , CommandHandlerArgumentCameraHelper , CommandHandlerArgumentNames , } from "../types/command.js" ; export default class ControlsCommand implements Command { constructor ( ) { assert . strictEqual ( arguments . length , 0 ) ; } async getArguments ( ) { return [ CommandHandlerArgumentCameraHelper , ] ; } async execute ( ... args ) { assert . strictEqual ( arguments . length , 1 ) ; const cameraHelper = args [ 0 ] as ReadonlyDeep < CameraHelper > ; const controlNames = await cameraHelper . getControlNames ( ) ; return controlNames ; } }