Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,8 @@ const registerConfigSetCommand = (config: Command) => {
setConfig(key as any, finalValue);
console.log(chalk.green(`✓ Set ${key} to ${finalValue}`));
} catch (error) {
console.error(
chalk.red(`✗ Failed to set config: ${(error as Error).message}`),
);
console.error(chalk.red(`✗ Failed to set config: ${(error as Error).message}`));
process.exitCode = 1;
}
});
};
Expand Down Expand Up @@ -302,16 +301,8 @@ const registerConfigListCommand = (config: Command) => {
);
});
}

console.log(
chalk.gray('──────────────────────────────────────────────────'),
);

console.log(
chalk.dim(
'\n Note: SMTP password can be set either in config or via the KDM_SMTP_PASSWORD environment variable, which takes precedence if both are set.\n',
),
);
console.log(chalk.gray('──────────────────────────────────────────────────'));
console.log(chalk.dim('\n Note: SMTP passwords must be provided exclusively via the KDM_SMTP_PASSWORD environment variable.\n'));
});
};

Expand Down Expand Up @@ -372,7 +363,7 @@ const printEmailSmtpGuide = () => {
console.log(chalk.white(' 1. Find your provider SMTP settings before continuing.'));
console.log(chalk.white(' 2. Common hosts: smtp.gmail.com for Gmail, smtp.office365.com for Outlook.'));
console.log(chalk.white(' 3. Use port 587 for STARTTLS unless your provider says otherwise.'));
console.log(chalk.white(' 4. Set the SMTP password via the KDM_SMTP_PASSWORD environment variable.'));
console.log(chalk.white(' 4. Provide the SMTP password via the KDM_SMTP_PASSWORD environment variable.'));
console.log(chalk.dim(' Gmail accounts with 2FA usually require an App Password.'));
console.log(chalk.gray('──────────────────────────────────────────────────\n'));
};
Loading