Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,17 @@ export abstract class ArchitectCommandModule
}

async run(options: Options<ArchitectCommandArgs> & OtherOptions): Promise<number | void> {
const target = this.getArchitectTarget();
const originalProcessTitle = process.title;
try {
const target = this.getArchitectTarget();
const { configuration = '', project, ...architectOptions } = options;

const { configuration = '', project, ...architectOptions } = options;
if (project) {
process.title = `${originalProcessTitle} (${project})`;

return await this.runSingleTarget({ configuration, target, project }, architectOptions);
}

if (!project) {
// This runs each target sequentially.
// Running them in parallel would jumble the log messages.
let result = 0;
Expand All @@ -111,12 +117,13 @@ export abstract class ArchitectCommandModule
}

for (const project of projectNames) {
process.title = `${originalProcessTitle} (${project})`;
result |= await this.runSingleTarget({ configuration, target, project }, architectOptions);
}

return result;
} else {
return await this.runSingleTarget({ configuration, target, project }, architectOptions);
} finally {
process.title = originalProcessTitle;
}
}

Expand Down