From c2e39eb3f804bee1ae0dfa00dd9cc06f24879e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Mon, 11 Dec 2023 18:02:34 +0100 Subject: [PATCH] Login => Add info text --- NodeApp/src/managers/SessionManager.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/NodeApp/src/managers/SessionManager.ts b/NodeApp/src/managers/SessionManager.ts index 208c2dd..18f9179 100644 --- a/NodeApp/src/managers/SessionManager.ts +++ b/NodeApp/src/managers/SessionManager.ts @@ -141,6 +141,11 @@ class SessionManager { private getGitlabCodeFromGraphicEnvironment(): Promise<string> { return new Promise<string>((resolve, reject) => { + ora({ + text : 'GUI mode (for headless mode, use the --cli option)', + indent: 4 + }).start().info(); + let currentSpinner: ora.Ora = ora({ text : 'Starting login server', indent: 4 @@ -150,7 +155,7 @@ class SessionManager { loginServer.events.on('started', () => { currentSpinner.succeed('Login server started'); currentSpinner = ora({ - text : 'Waiting for user to authorize the application in his web browser', + text : `Waiting for user to authorize the application in his web browser. If the browser does not open automatically, please go to : ${ Config.login.gitlab.url.code }`, indent: 4 }).start(); open(Config.login.gitlab.url.code).then(); -- GitLab