We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8eb0a7d + 9e8ac77 commit 3a072ecCopy full SHA for 3a072ec
lib/commands/list-platforms.ts
@@ -9,7 +9,11 @@ export class ListPlatformsCommand implements ICommand {
9
execute(args: string[]): IFuture<void> {
10
return (() => {
11
var availablePlatforms = this.$platformService.getAvailablePlatforms().wait();
12
- this.$logger.out("Available platforms: %s", helpers.formatListOfNames(availablePlatforms));
+ if(availablePlatforms.length > 0) {
13
+ this.$logger.out("Available platforms: %s", helpers.formatListOfNames(availablePlatforms));
14
+ } else {
15
+ this.$logger.out("No available platforms found.");
16
+ }
17
18
var message = "No installed platforms found.";
19
var installedPlatforms = this.$platformService.getInstalledPlatforms().wait();
0 commit comments