File tree 5 files changed +8
-8
lines changed 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ export class DebugPlatformCommand implements ICommand {
7
7
execute ( args : string [ ] ) : IFuture < void > {
8
8
return this . debugService . debug ( ) ;
9
9
}
10
-
10
+
11
11
allowedParameters : ICommandParameter [ ] = [ ] ;
12
12
}
13
13
14
14
export class DebugIOSCommand extends DebugPlatformCommand {
15
15
constructor ( private $iOSDebugService : IDebugService ) {
16
16
super ( $iOSDebugService ) ;
17
- }
17
+ }
18
18
}
19
19
$injector . registerCommand ( "debug|ios" , DebugIOSCommand ) ;
20
20
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export class DeployOnDeviceCommand implements ICommand {
8
8
execute ( args : string [ ] ) : IFuture < void > {
9
9
return this . $platformService . deployOnDevice ( args [ 0 ] ) ;
10
10
}
11
-
11
+
12
12
allowedParameters = [ this . $platformCommandParameter ] ;
13
13
}
14
14
$injector . registerCommand ( "deploy" , DeployOnDeviceCommand ) ;
Original file line number Diff line number Diff line change @@ -6,11 +6,9 @@ export class PrepareCommand implements ICommand {
6
6
private $platformCommandParameter : ICommandParameter ) { }
7
7
8
8
execute ( args : string [ ] ) : IFuture < void > {
9
- return ( ( ) => {
10
- this . $platformService . preparePlatform ( args [ 0 ] ) . wait ( ) ;
11
- } ) . future < void > ( ) ( ) ;
9
+ return this . $platformService . preparePlatform ( args [ 0 ] ) ;
12
10
}
13
-
11
+
14
12
allowedParameters = [ this . $platformCommandParameter ] ;
15
13
}
16
14
$injector . registerCommand ( "prepare" , PrepareCommand ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export class RunCommandBase {
6
6
7
7
public executeCore ( args : string [ ] ) : IFuture < void > {
8
8
return this . $platformService . runPlatform ( args [ 0 ] ) ;
9
- }
9
+ }
10
10
}
11
11
12
12
export class RunIosCommand extends RunCommandBase implements ICommand {
Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ export class PlatformService implements IPlatformService {
146
146
147
147
public preparePlatform ( platform : string ) : IFuture < void > {
148
148
return ( ( ) => {
149
+ this . validatePlatform ( platform ) ;
150
+
149
151
platform = platform . toLowerCase ( ) ;
150
152
151
153
var platformData = this . $platformsData . getPlatformData ( platform ) ;
You can’t perform that action at this time.
0 commit comments