File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1+ import logSymbols from 'log-symbols' ;
2+ import { conf } from '../../utils/conf.js' ;
3+
4+ export async function resendReset ( ) {
5+ conf . delete ( 'resendApiKey' ) ;
6+
7+ console . info ( `${ logSymbols . success } Resend API Key successfully deleted` ) ;
8+ }
Original file line number Diff line number Diff line change 11import logSymbols from 'log-symbols' ;
22import prompts from 'prompts' ;
3- import { conf } from '../utils/conf.js' ;
4- import { styleText } from '../utils/style-text.js' ;
3+ import { conf } from '../../ utils/conf.js' ;
4+ import { styleText } from '../../ utils/style-text.js' ;
55
66export async function resendSetup ( ) {
77 const previousValue = conf . get ( 'resendApiKey' ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { program } from 'commander';
33import { build } from './commands/build.js' ;
44import { dev } from './commands/dev.js' ;
55import { exportTemplates } from './commands/export.js' ;
6- import { resendSetup } from './commands/resend-setup.js' ;
6+ import { resendReset } from './commands/resend/reset.js' ;
7+ import { resendSetup } from './commands/resend/setup.js' ;
78import { start } from './commands/start.js' ;
89import { packageJson } from './utils/packageJson.js' ;
910
@@ -61,4 +62,12 @@ program
6162 )
6263 . action ( resendSetup ) ;
6364
65+ program
66+ . command ( 'resend' )
67+ . command ( 'reset' )
68+ . description (
69+ 'Deletes your API Key from the React Email configuration' ,
70+ )
71+ . action ( resendReset ) ;
72+
6473program . parse ( ) ;
You can’t perform that action at this time.
0 commit comments