File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const UPLOAD_URL =
1010 process . env . UPLOAD_URL || 'https://us-central1-sourcegraph-dev.cloudfunctions.net/submit-coding-exercise'
1111
1212async function main ( ) : Promise < void > {
13+ console. log ( 'Ready to upload 🚀' )
1314 const { fullName } = await prompt < { fullName : string } > ( [
1415 { type : 'input' , message : 'Please enter your full name:' , name : 'fullName' } ,
1516 ] )
@@ -34,14 +35,16 @@ async function main(): Promise<void> {
3435 const url = new URL ( UPLOAD_URL )
3536 url . searchParams . set ( 'fullName' , fullName )
3637
38+ console . log ( '' )
3739 const spinner = ora ( 'Uploading' ) . start ( )
3840
3941 try {
4042 const response = await got . post < { sandboxUrl : string } > ( url . href , { body : tarStream , responseType : 'json' } )
4143 spinner . succeed ( 'Success' )
4244 console . log (
43- 'Please send an email to us containing the following URL:\n' +
44- chalk . bold . underline ( response . body . sandboxUrl )
45+ '\nPlease send an email to us containing the following URL:\n' +
46+ chalk . bold . underline ( response . body . sandboxUrl ) +
47+ '\n'
4548 )
4649 } catch ( error ) {
4750 spinner . fail ( 'Something went wrong' )
You can’t perform that action at this time.
0 commit comments