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 =
10
10
process . env . UPLOAD_URL || 'https://us-central1-sourcegraph-dev.cloudfunctions.net/submit-coding-exercise'
11
11
12
12
async function main ( ) : Promise < void > {
13
+ console. log ( 'Ready to upload 🚀' )
13
14
const { fullName } = await prompt < { fullName : string } > ( [
14
15
{ type : 'input' , message : 'Please enter your full name:' , name : 'fullName' } ,
15
16
] )
@@ -34,14 +35,16 @@ async function main(): Promise<void> {
34
35
const url = new URL ( UPLOAD_URL )
35
36
url . searchParams . set ( 'fullName' , fullName )
36
37
38
+ console . log ( '' )
37
39
const spinner = ora ( 'Uploading' ) . start ( )
38
40
39
41
try {
40
42
const response = await got . post < { sandboxUrl : string } > ( url . href , { body : tarStream , responseType : 'json' } )
41
43
spinner . succeed ( 'Success' )
42
44
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'
45
48
)
46
49
} catch ( error ) {
47
50
spinner . fail ( 'Something went wrong' )
You can’t perform that action at this time.
0 commit comments