File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const createPersonalAccessToken = async () => {
2626 reason,
2727 } ) ;
2828 await write ( token ) ;
29+ console . log ( '💯 Copied personal access token to clipboard!' ) ;
2930 } catch ( error ) {
3031 if ( isTwoFactorAuthenticationError ( error ) ) {
3132 const { twoFactorAuthenticationCode } = await promptTwoFactorAuthenticationCode ( ) ;
@@ -37,6 +38,7 @@ const createPersonalAccessToken = async () => {
3738 twoFactorAuthenticationCode,
3839 } ) ;
3940 await write ( token ) ;
41+ console . log ( '💯 Copied personal access token to clipboard!' ) ;
4042 } else {
4143 throw error ;
4244 }
Original file line number Diff line number Diff line change 44
55import createPersonalAccessToken from '../createPersonalAccessToken' ;
66
7- createPersonalAccessToken ( ) ;
7+ const execute = async ( ) => {
8+ try {
9+ await createPersonalAccessToken ( ) ;
10+ } catch ( e ) {
11+ console . error ( '😞 Rut ro, an error occurred' ) ;
12+ console . error ( e ) ;
13+ }
14+ } ;
15+
16+ execute ( ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ const isValidUsername = async (username) => {
77 } catch ( e ) {
88 return false ;
99 }
10- }
10+ } ;
1111
12- export default isValidUsername ;
12+ export default isValidUsername ;
You can’t perform that action at this time.
0 commit comments