From ab481bd0f7d442518938159e2581e274693dcfd2 Mon Sep 17 00:00:00 2001 From: Jai Radhakrishnan <55522316+jairad26@users.noreply.github.com> Date: Thu, 24 Oct 2024 08:21:58 -0700 Subject: [PATCH] fix login (#14) --- src/commands/login/index.ts | 53 +++++++++++++++++++++++++++++++- src/commands/login/login-html.ts | 51 ------------------------------ tsconfig.tsbuildinfo | 2 +- 3 files changed, 53 insertions(+), 53 deletions(-) delete mode 100644 src/commands/login/login-html.ts diff --git a/src/commands/login/index.ts b/src/commands/login/index.ts index de873f1..ac0a29e 100644 --- a/src/commands/login/index.ts +++ b/src/commands/login/index.ts @@ -8,7 +8,58 @@ import open from 'open' import { fileExists, getEnvDir, getEnvFilePath, promptOrgSelection, sendGraphQLRequest, } from '../../util/index.js' -import loginHTML from './login-html.js' + +const loginHTML = ` + + +
+ + +You can now close this window and return to the terminal.
+ + +` export default class LoginIndex extends Command { static override args = {} diff --git a/src/commands/login/login-html.ts b/src/commands/login/login-html.ts deleted file mode 100644 index 4c9d6ec..0000000 --- a/src/commands/login/login-html.ts +++ /dev/null @@ -1,51 +0,0 @@ -export default ` - - - - - -You can now close this window and return to the terminal.
- - -` diff --git a/tsconfig.tsbuildinfo b/tsconfig.tsbuildinfo index f65fe34..edee1e2 100644 --- a/tsconfig.tsbuildinfo +++ b/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/index.ts","./src/commands/login/index.ts","./src/commands/login/login-html.ts","./src/commands/logout/index.ts","./src/commands/org/switch.ts","./src/custom/help.ts","./src/util/index.ts"],"version":"5.6.2"} \ No newline at end of file +{"root":["./src/index.ts","./src/commands/login/index.ts","./src/commands/logout/index.ts","./src/commands/org/switch.ts","./src/custom/help.ts","./src/util/index.ts"],"version":"5.6.2"} \ No newline at end of file