11import { ERROR_NO_VALID_SUBCOMMAND_FORMAT } from "../common/constants" ;
2- import {
3- ANDROID_RELEASE_BUILD_ERROR_MESSAGE ,
4- ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE ,
5- } from "../constants" ;
2+ import { IErrors , IHostInfo } from "../common/declarations" ;
63import { cache } from "../common/decorators" ;
7- import { hasValidAndroidSigning } from "../common/helpers" ;
8- import { IProjectData , IProjectDataService } from "../definitions/project" ;
9- import { IMigrateController } from "../definitions/migrate" ;
10- import { IOptions , IPlatformValidationService } from "../declarations" ;
114import { ICommand , ICommandParameter } from "../common/definitions/commands" ;
12- import { IErrors , IHostInfo } from "../common/declarations" ;
5+ import {
6+ IKeyCommandHelper ,
7+ IKeyCommandPlatform ,
8+ } from "../common/definitions/key-commands" ;
139import { IInjector } from "../common/definitions/yok" ;
10+ import { hasValidAndroidSigning } from "../common/helpers" ;
1411import { injector } from "../common/yok" ;
12+ import {
13+ ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE ,
14+ ANDROID_RELEASE_BUILD_ERROR_MESSAGE ,
15+ } from "../constants" ;
16+ import { IOptions , IPlatformValidationService } from "../declarations" ;
17+ import { IMigrateController } from "../definitions/migrate" ;
18+ import { IProjectData , IProjectDataService } from "../definitions/project" ;
1519
1620export class RunCommandBase implements ICommand {
17- private liveSyncCommandHelperAdditionalOptions : ILiveSyncCommandHelperAdditionalOptions = <
18- ILiveSyncCommandHelperAdditionalOptions
19- > { } ;
21+ private liveSyncCommandHelperAdditionalOptions : ILiveSyncCommandHelperAdditionalOptions =
22+ < ILiveSyncCommandHelperAdditionalOptions > { } ;
2023
2124 public platform : string ;
2225 constructor (
@@ -26,15 +29,23 @@ export class RunCommandBase implements ICommand {
2629 private $liveSyncCommandHelper : ILiveSyncCommandHelper ,
2730 private $migrateController : IMigrateController ,
2831 private $options : IOptions ,
29- private $projectData : IProjectData
32+ private $projectData : IProjectData ,
33+ private $keyCommandHelper : IKeyCommandHelper
3034 ) { }
3135
3236 public allowedParameters : ICommandParameter [ ] = [ ] ;
3337 public async execute ( args : string [ ] ) : Promise < void > {
34- return this . $liveSyncCommandHelper . executeCommandLiveSync (
38+ await this . $liveSyncCommandHelper . executeCommandLiveSync (
3539 this . platform ,
3640 this . liveSyncCommandHelperAdditionalOptions
3741 ) ;
42+
43+ if ( process . env . NS_IS_INTERACTIVE ) {
44+ this . $keyCommandHelper . attachKeyCommands (
45+ this . platform as IKeyCommandPlatform ,
46+ "run"
47+ ) ;
48+ }
3849 }
3950
4051 public async canExecute ( args : string [ ] ) : Promise < boolean > {
0 commit comments