@@ -6,7 +6,6 @@ import type {
66 KeyboardCommandOptions ,
77 RotateCommandOptions ,
88} from '../../client.ts' ;
9- import { CLIENT_COMMANDS } from '../../client-command-registry.ts' ;
109import type { CliFlags } from '../../utils/command-schema.ts' ;
1110import { AppError } from '../../utils/errors.ts' ;
1211import { waitCommandCodec } from '../../command-codecs.ts' ;
@@ -15,49 +14,49 @@ import { buildSelectionOptions, writeCommandMessage, writeCommandOutput } from '
1514import type { ClientCommandHandlerMap } from './router-types.ts' ;
1615
1716export const clientCommandMethodHandlers = {
18- [ CLIENT_COMMANDS . wait ] : async ( { positionals, flags, client } ) => {
17+ wait : async ( { positionals, flags, client } ) => {
1918 writeCommandMessage (
2019 flags ,
2120 await client . command . wait ( waitCommandCodec . decode ( positionals , flags ) ) ,
2221 ) ;
2322 return true ;
2423 } ,
25- [ CLIENT_COMMANDS . alert ] : async ( { positionals, flags, client } ) => {
24+ alert : async ( { positionals, flags, client } ) => {
2625 writeCommandMessage ( flags , await client . command . alert ( readAlertOptions ( positionals , flags ) ) ) ;
2726 return true ;
2827 } ,
29- [ CLIENT_COMMANDS . appState ] : async ( { flags, client } ) => {
28+ appstate : async ( { flags, client } ) => {
3029 const result = await client . command . appState ( buildSelectionOptions ( flags ) ) ;
3130 writeCommandOutput ( flags , result , ( ) => formatAppState ( result ) ) ;
3231 return true ;
3332 } ,
34- [ CLIENT_COMMANDS . back ] : async ( { flags, client } ) => {
33+ back : async ( { flags, client } ) => {
3534 writeCommandMessage (
3635 flags ,
3736 await client . command . back ( { ...buildSelectionOptions ( flags ) , mode : flags . backMode } ) ,
3837 ) ;
3938 return true ;
4039 } ,
41- [ CLIENT_COMMANDS . home ] : async ( { flags, client } ) => {
40+ home : async ( { flags, client } ) => {
4241 writeCommandMessage ( flags , await client . command . home ( buildSelectionOptions ( flags ) ) ) ;
4342 return true ;
4443 } ,
45- [ CLIENT_COMMANDS . rotate ] : async ( { positionals, flags, client } ) => {
44+ rotate : async ( { positionals, flags, client } ) => {
4645 writeCommandMessage ( flags , await client . command . rotate ( readRotateOptions ( positionals , flags ) ) ) ;
4746 return true ;
4847 } ,
49- [ CLIENT_COMMANDS . appSwitcher ] : async ( { flags, client } ) => {
48+ 'app-switcher' : async ( { flags, client } ) => {
5049 writeCommandMessage ( flags , await client . command . appSwitcher ( buildSelectionOptions ( flags ) ) ) ;
5150 return true ;
5251 } ,
53- [ CLIENT_COMMANDS . keyboard ] : async ( { positionals, flags, client } ) => {
52+ keyboard : async ( { positionals, flags, client } ) => {
5453 writeCommandMessage (
5554 flags ,
5655 await client . command . keyboard ( readKeyboardOptions ( positionals , flags ) ) ,
5756 ) ;
5857 return true ;
5958 } ,
60- [ CLIENT_COMMANDS . clipboard ] : async ( { positionals, flags, client } ) => {
59+ clipboard : async ( { positionals, flags, client } ) => {
6160 writeClipboardOutput (
6261 flags ,
6362 await client . command . clipboard ( readClipboardOptions ( positionals , flags ) ) ,
0 commit comments