@@ -23,15 +23,15 @@ export class ListDevicesCommand implements ICommand {
23
23
this . printEmulators ( "\nAvailable emulators" , emulators ) ;
24
24
}
25
25
26
- this . $logger . out ( "\nConnected devices & emulators" ) ;
26
+ this . $logger . info ( "\nConnected devices & emulators" ) ;
27
27
let index = 1 ;
28
28
await this . $devicesService . initialize ( { platform : args [ 0 ] , deviceId : null , skipInferPlatform : true , skipDeviceDetectionInterval : true , skipEmulatorStart : true } ) ;
29
29
30
30
const table : any = createTable ( [ "#" , "Device Name" , "Platform" , "Device Identifier" , "Type" , "Status" ] , [ ] ) ;
31
31
let action : ( _device : Mobile . IDevice ) => Promise < void > ;
32
32
if ( this . $options . json ) {
33
33
action = async ( device ) => {
34
- this . $logger . out ( JSON . stringify ( device . deviceInfo ) ) ;
34
+ this . $logger . info ( JSON . stringify ( device . deviceInfo ) ) ;
35
35
} ;
36
36
} else {
37
37
action = async ( device ) => {
@@ -44,18 +44,18 @@ export class ListDevicesCommand implements ICommand {
44
44
await this . $devicesService . execute ( action , undefined , { allowNoDevices : true } ) ;
45
45
46
46
if ( ! this . $options . json && table . length ) {
47
- this . $logger . out ( table . toString ( ) ) ;
47
+ this . $logger . info ( table . toString ( ) ) ;
48
48
}
49
49
}
50
50
51
51
private printEmulators ( title : string , emulators : Mobile . IDeviceInfo [ ] ) {
52
- this . $logger . out ( title ) ;
52
+ this . $logger . info ( title ) ;
53
53
const table : any = createTable ( [ "Device Name" , "Platform" , "Version" , "Device Identifier" , "Image Identifier" , "Error Help" ] , [ ] ) ;
54
54
for ( const info of emulators ) {
55
55
table . push ( [ info . displayName , info . platform , info . version , info . identifier || "" , info . imageIdentifier || "" , info . errorHelp || "" ] ) ;
56
56
}
57
57
58
- this . $logger . out ( table . toString ( ) ) ;
58
+ this . $logger . info ( table . toString ( ) ) ;
59
59
}
60
60
}
61
61
0 commit comments