Skip to content

Commit

Permalink
Merge pull request #3 from mailosaur/hyperlink-colors
Browse files Browse the repository at this point in the history
Added hyperlink colors
  • Loading branch information
jm-mailosaur authored Jun 26, 2024
2 parents 59d0d20 + 8f731ec commit 1575278
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/inputs/apiKeyInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ export async function apiKeyInput(isServerApiKey: boolean): Promise<string> {
{
type: 'password',
name: 'value',
message:
'Please enter your Mailosaur API key (see https://mailosaur.com/app/account/keys):',
message: `Please enter your Mailosaur API key (see ${pc.blue(
'https://mailosaur.com/app/account/keys'
)}):`,
validate: async value => {
const encodedApiKey = Buffer.from(`key:${value}`).toString('base64');

Expand Down
5 changes: 4 additions & 1 deletion src/inputs/serverIdInput.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import prompts from 'prompts';
import pc from 'picocolors';

import { exit } from '@/helpers';

Expand All @@ -9,7 +10,9 @@ export async function serverIdInput(): Promise<string> {
{
type: 'text',
name: 'value',
message: 'Enter your Server ID (see https://mailosaur.com/app/servers):',
message: `Enter your Server ID (see ${pc.blue(
'https://mailosaur.com/app/servers'
)}):`,
validate: async (value: string) => {
if (value.length === 8) {
return true;
Expand Down

0 comments on commit 1575278

Please sign in to comment.