Skip to content

Commit 4641f61

Browse files
committed
refactor: removing redundant exports and questions.
1 parent 309d764 commit 4641f61

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

templates/cli/lib/commands/generic.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const inquirer = require("inquirer");
22
const { Command } = require("commander");
33
const Client = require("../client");
4-
const { sdkForConsole, questionGetEndpoint } = require("../sdks");
4+
const { sdkForConsole } = require("../sdks");
55
const { globalConfig, localConfig } = require("../config");
66
const { actionRunner, success, parseBool, commandDescriptions, error, parse, log, drawTable } = require("../parser");
77
const ID = require("../id");

templates/cli/lib/questions.js.twig

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -523,14 +523,6 @@ const questionGetEndpoint = [
523523
}
524524
];
525525

526-
const questionLoginWithEndpoint = [
527-
questionsLogin[0],
528-
{ ...questionGetEndpoint[0], when: (answers) => answers.method !== 'select' },
529-
questionsLogin[1],
530-
questionsLogin[2],
531-
questionsLogin[3]
532-
]
533-
534526
const questionsLogout = [
535527
{
536528
type: "checkbox",
@@ -799,6 +791,4 @@ module.exports = {
799791
questionsGetEntrypoint,
800792
questionsListFactors,
801793
questionsMfaChallenge,
802-
questionGetEndpoint,
803-
questionLoginWithEndpoint
804794
};

templates/cli/lib/sdks.js.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,4 @@ const sdkForProject = async () => {
9999
module.exports = {
100100
sdkForConsole,
101101
sdkForProject,
102-
questionGetEndpoint,
103102
};

0 commit comments

Comments
 (0)