Skip to content

Commit a4b0948

Browse files
committed
show more messages to process be more clear
1 parent e93888a commit a4b0948

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const minAccessLevel = 20; // guests not allowed to download repo.
5555
const defaultAddress = `/api/v4/projects?simple=true&membership=true&pagination=keyset&order_by=id&sort=asc&per_page=${pagination}&min_access_level=${minAccessLevel}`;
5656
const bar = new cliProgress.SingleBar(
5757
{
58-
hideCursor: true,
5958
format:
6059
"\nprogress [{bar}] {percentage}% | {value}/{total} | this may take several minutes \n",
6160
},
@@ -128,7 +127,12 @@ function main() {
128127
* if we don't have any other repos url, so we stop our pagination process and
129128
* start cloning the repositories.
130129
*/
131-
getRepos(totalRepos, utils, bar, scriptOptions)
130+
131+
console.log(
132+
chalk.yellow(`\n${totalRepos.length} repo(s) available for clone!\n`)
133+
);
134+
135+
getRepos([], utils, bar, scriptOptions)
132136
.then(() => {
133137
bar.stop();
134138
console.clear();
@@ -152,4 +156,8 @@ function main() {
152156
});
153157
}
154158

159+
console.log(
160+
chalk.yellow("\nStart fetching available repositories, please wait ...\n")
161+
);
162+
155163
main();

0 commit comments

Comments
 (0)