From 4f9b58664fac1bb0d09928ae4de9433cad9be306 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Thu, 16 Dec 2021 20:24:59 -0800 Subject: [PATCH] generate: Log devices in multi-device runs --- src/commands/generate-all.ts | 7 +++++++ src/commands/generate-prep.ts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/commands/generate-all.ts b/src/commands/generate-all.ts index 2da832e..8e71429 100644 --- a/src/commands/generate-all.ts +++ b/src/commands/generate-all.ts @@ -1,4 +1,5 @@ import { Command, flags } from '@oclif/command' +import chalk from 'chalk' import { promises as fs } from 'fs' import { createVendorDirs } from '../blobs/build' @@ -145,6 +146,12 @@ export default class GenerateFull extends Command { let devices = await loadDevicesConfig(configPath) for (let config of devices) { + if (devices.length > 1) { + this.log(` +${chalk.bold(chalk.blueBright(config.device.name))} +`) + } + await doDevice(config, stockSrc, customSrc, aapt2Path, buildId, factoryZip, skipCopy) } diff --git a/src/commands/generate-prep.ts b/src/commands/generate-prep.ts index 1f1f46a..8dbb682 100644 --- a/src/commands/generate-prep.ts +++ b/src/commands/generate-prep.ts @@ -1,4 +1,5 @@ import { Command, flags } from '@oclif/command' +import chalk from 'chalk' import { createVendorDirs } from '../blobs/build' import { copyBlobs } from '../blobs/copy' @@ -76,6 +77,12 @@ export default class GeneratePrep extends Command { let devices = await loadDevicesConfig(configPath) for (let config of devices) { + if (devices.length > 1) { + this.log(` +${chalk.bold(chalk.blueBright(config.device.name))} +`) + } + await doDevice(config, stockSrc, buildId, skipCopy) } }