Skip to content

Commit 32452ff

Browse files
committed
refactor(cli): Review fixing
1 parent 8c7b894 commit 32452ff

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const whoami = new Command("whoami")
134134

135135
const login = new Command("login")
136136
.description(commandDescriptions['login'])
137-
.option(`-sa, --self-hosted`, `Flag for enabling custom endpoint for self hosted instances`)
137+
.option(`-sh, --self-hosted`, `Flag for enabling custom endpoint for self hosted instances`)
138138
.configureHelp({
139139
helpWidth: process.stdout.columns || 80
140140
})
@@ -282,7 +282,6 @@ const migrate = async () => {
282282
const endpoint = globalConfig.get('endpoint');
283283
const cookie = globalConfig.get('cookie');
284284

285-
log("Old Appwrite login settings were detected, migrating...");
286285
const id = ID.unique();
287286
const data = {
288287
endpoint,
@@ -295,7 +294,6 @@ const migrate = async () => {
295294
globalConfig.delete('endpoint');
296295
globalConfig.delete('cookie');
297296

298-
success(`Account was migrated and it's the current account`);
299297
}
300298
module.exports = {
301299
{% if sdk.test != "true" %}

templates/cli/lib/questions.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ const questionsLogin = [
319319
{
320320
type: "list",
321321
name: "accountId",
322-
message: "Select an account to switch to",
322+
message: "Select an account to use",
323323
choices() {
324324
const logins = globalConfig.getLogins();
325325
const current = globalConfig.getCurrentLogin();

0 commit comments

Comments
 (0)