From e6344dac6d1be04b46231fa8ef8579fd12ca8f37 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 9 Mar 2023 11:21:16 +0100 Subject: [PATCH] fix(cli): improve visibility of the active workspace --- cli/workspace.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/workspace.ts b/cli/workspace.ts index 7919f14b49..a323ba246d 100644 --- a/cli/workspace.ts +++ b/cli/workspace.ts @@ -139,6 +139,8 @@ async function list(opts: GlobalOptions) { }), ) .render(); + + console.log('Active: ' + colors.green.bold(activeName || 'none')) } async function switchC(opts: GlobalOptions, workspaceName: string) { @@ -313,6 +315,8 @@ async function remove(_opts: GlobalOptions, name: string) { async function whoami(_opts: GlobalOptions) { await requireLogin(_opts) console.log(await UserService.globalWhoami()) + const activeName = await getActiveWorkspaceName(_opts); + console.log('Active: ' + colors.green.bold(activeName || 'none')) } const command = new Command()