From 2656f2c0065597848df57def1b30e28c31332b63 Mon Sep 17 00:00:00 2001 From: tomastrajan Date: Thu, 7 Dec 2017 16:12:30 +1100 Subject: [PATCH] feat(@angular/cli): display app index or name in process title when specified Closes #6888 --- packages/@angular/cli/utilities/app-utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@angular/cli/utilities/app-utils.ts b/packages/@angular/cli/utilities/app-utils.ts index 4207874eb635..db97d103bc98 100644 --- a/packages/@angular/cli/utilities/app-utils.ts +++ b/packages/@angular/cli/utilities/app-utils.ts @@ -14,11 +14,13 @@ export function getAppFromConfig(nameOrIndex?: String) { if (nameOrIndex.match(/^[0-9]+$/)) { const index = parseInt(nameOrIndex.toString(), 10); if (apps[index]) { + process.title = `ng - app ${index}`; return apps[index]; } } else { const filtered = apps.filter((currentApp: any) => currentApp.name === nameOrIndex); if (filtered.length > 0) { + process.title = `ng - ${filtered[0].name}`; return filtered[0]; } }