Skip to content

Commit f8b0948

Browse files
fix(cli-message): Shows an appropriate message with the --path option
Shows up an appropriate message while trying to run app in non-project directory
1 parent 3267539 commit f8b0948

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/commands/run.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class RunIosCommand implements ICommand {
6666
private $errors: IErrors,
6767
private $injector: IInjector,
6868
private $platformService: IPlatformService,
69-
private $projectData: IProjectData,
69+
private $projectDataService: IProjectDataService,
7070
private $options: IOptions) {
7171
}
7272

@@ -75,11 +75,11 @@ export class RunIosCommand implements ICommand {
7575
}
7676

7777
public async canExecute(args: string[]): Promise<boolean> {
78-
if (!this.$platformService.isPlatformSupportedForOS(this.$devicePlatformsConstants.iOS, this.$projectData)) {
78+
if (!this.$platformService.isPlatformSupportedForOS(this.$devicePlatformsConstants.iOS, projectData)) {
7979
this.$errors.fail(`Applications for platform ${this.$devicePlatformsConstants.iOS} can not be built on this OS`);
8080
}
8181

82-
const result = await this.runCommand.canExecute(args) && await this.$platformService.validateOptions(this.$options.provision, this.$options.teamId, this.$projectData, this.$platformsData.availablePlatforms.iOS);
82+
const result = await this.runCommand.canExecute(args) && await this.$platformService.validateOptions(this.$options.provision, this.$options.teamId, projectData, this.$platformsData.availablePlatforms.iOS);
8383
return result;
8484
}
8585
}

0 commit comments

Comments
 (0)