generate: Log devices in multi-device runs

This commit is contained in:
Danny Lin 2021-12-16 20:24:59 -08:00
parent 7bc3ff5bd6
commit 4f9b58664f
2 changed files with 14 additions and 0 deletions

View file

@ -1,4 +1,5 @@
import { Command, flags } from '@oclif/command' import { Command, flags } from '@oclif/command'
import chalk from 'chalk'
import { promises as fs } from 'fs' import { promises as fs } from 'fs'
import { createVendorDirs } from '../blobs/build' import { createVendorDirs } from '../blobs/build'
@ -145,6 +146,12 @@ export default class GenerateFull extends Command {
let devices = await loadDevicesConfig(configPath) let devices = await loadDevicesConfig(configPath)
for (let config of devices) { 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, await doDevice(config, stockSrc, customSrc, aapt2Path, buildId, factoryZip,
skipCopy) skipCopy)
} }

View file

@ -1,4 +1,5 @@
import { Command, flags } from '@oclif/command' import { Command, flags } from '@oclif/command'
import chalk from 'chalk'
import { createVendorDirs } from '../blobs/build' import { createVendorDirs } from '../blobs/build'
import { copyBlobs } from '../blobs/copy' import { copyBlobs } from '../blobs/copy'
@ -76,6 +77,12 @@ export default class GeneratePrep extends Command {
let devices = await loadDevicesConfig(configPath) let devices = await loadDevicesConfig(configPath)
for (let config of devices) { for (let config of devices) {
if (devices.length > 1) {
this.log(`
${chalk.bold(chalk.blueBright(config.device.name))}
`)
}
await doDevice(config, stockSrc, buildId, skipCopy) await doDevice(config, stockSrc, buildId, skipCopy)
} }
} }