File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ const minAccessLevel = 20; // guests not allowed to download repo.
5555const defaultAddress = `/api/v4/projects?simple=true&membership=true&pagination=keyset&order_by=id&sort=asc&per_page=${ pagination } &min_access_level=${ minAccessLevel } ` ;
5656const 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+
155163main ( ) ;
You can’t perform that action at this time.
0 commit comments