@@ -12,12 +12,15 @@ program
1212program
1313 . command ( 'sync' )
1414 . description ( 'Ryn sync between GIT 3 repos (base+diff=merged)' )
15- . requiredOption ( '-r, --repo' , 'URL to control repo repo (configuration+state)' )
16- . requiredOption ( '-b, --branch' , 'Branch name to be processed' )
15+ . requiredOption ( '-r, --repo <string> ' , 'URL to control repo repo (configuration+state)' )
16+ . requiredOption ( '-b, --branch <string> ' , 'Branch name to be processed' )
1717 . option ( '--skip-push' , 'skip pushing changes to remote' )
1818 . option ( '--clear' , 'clear work repos before running' )
1919 . action ( options => {
20- const processor = new Processor ( options . config , options . branch , path . join ( __dirname , 'workrepos' ) , {
20+ // console.log('repo:', options.repo);
21+ // console.log('branch:', options.branch);
22+ // return;
23+ const processor = new Processor ( options . repo , path . join ( __dirname , 'workrepos' ) , options . branch , {
2124 skipPush : options . skipPush ,
2225 clear : options . clear ,
2326 } ) ;
@@ -36,4 +39,4 @@ program
3639// const processor = new Processor(process.argv[2], path.join(__dirname, 'workrepos'), { skipPush, clear });
3740// processor.process();
3841
39- console . log ( 'Processing complete.' ) ;
42+ program . parse ( ) ;
0 commit comments