grab-url 0.9.136 → 0.9.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/grab-url-cli.js +6 -6
package/package.json
CHANGED
package/src/grab-url-cli.js
CHANGED
|
@@ -621,16 +621,16 @@ formatTotalSpeed(bytesPerSecond) {
|
|
|
621
621
|
*/
|
|
622
622
|
async downloadMultipleFiles(downloads) {
|
|
623
623
|
try {
|
|
624
|
-
console.log(this.colors.primary(
|
|
624
|
+
console.log(this.colors.primary(`Starting ${downloads.length} downloads...\n`));
|
|
625
625
|
|
|
626
626
|
// Set up global keyboard listener for pause/resume and add URL BEFORE starting downloads
|
|
627
627
|
this.setupGlobalKeyboardListener();
|
|
628
628
|
|
|
629
|
-
// Print header row
|
|
629
|
+
// Print header row
|
|
630
630
|
this.printHeaderRow();
|
|
631
631
|
|
|
632
|
-
// Show keyboard
|
|
633
|
-
console.log(this.colors.info('
|
|
632
|
+
// Show keyboard shortcuts
|
|
633
|
+
console.log(this.colors.info('Press p to pause/resume, a to add URL'));
|
|
634
634
|
|
|
635
635
|
// Get random colors for the multibar
|
|
636
636
|
const masterBarColor = this.getRandomBarColor();
|
|
@@ -2031,8 +2031,8 @@ console.error(chalk.red('Reason: ') + reason);
|
|
|
2031
2031
|
process.exit(1);
|
|
2032
2032
|
});
|
|
2033
2033
|
|
|
2034
|
-
// Run the CLI if
|
|
2035
|
-
if (
|
|
2034
|
+
// Run the CLI if there are command line arguments (indicating it's being run as a CLI tool)
|
|
2035
|
+
if (process.argv.length > 2) {
|
|
2036
2036
|
main().catch((error) => {
|
|
2037
2037
|
console.error(chalk.red.bold('💥 Fatal error: ') + error.message);
|
|
2038
2038
|
process.exit(1);
|