Skip to content

Commit 108eafb

Browse files
committed
feat: reorder console logs for better user experience during download
1 parent d4d0b8d commit 108eafb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cli.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,17 @@ export async function runner(
145145
}
146146

147147
if (!flags.silent) {
148-
console.log(
149-
`\n${dimLog('Downloading...')}\n${warningLog('Press Ctrl+C to abort')}`,
150-
);
151-
152148
if (flags.insecure) {
153149
console.log(
154150
warningLog(
155-
'\nWarning: SSL certificate verification is disabled (--insecure). This makes the connection vulnerable to man-in-the-middle attacks. Use with caution.\n',
151+
'\nWarning: SSL certificate verification is disabled (--insecure). This makes the connection vulnerable to man-in-the-middle attacks. Use with caution.',
156152
),
157153
);
158154
}
155+
156+
console.log(
157+
`${dimLog('Downloading...')}\n${warningLog('Press Ctrl+C to abort')}`,
158+
);
159159
}
160160

161161
const separator = dimLog('|');

0 commit comments

Comments
 (0)