@@ -19,6 +19,8 @@ interface CloneOptions {
1919}
2020
2121const cloneAction = async ( options : CloneOptions , repo : string ) => {
22+ console . log ( chalk . bgYellow ( 'Dry run mode ... none of the commands will actually be run.' ) ) ;
23+
2224 const localRepo = getLocalPath (
2325 repo ,
2426 options . rootDir ?? `${ HOME_DIR } /Projects` ,
@@ -30,13 +32,13 @@ const cloneAction = async (options: CloneOptions, repo: string) => {
3032 const dirAlreadyExists = await exists ( localRepo ) ;
3133 if ( dirAlreadyExists ) {
3234 if ( options . dryRun ) {
33- console . log ( chalk . bgYellow ( ` Dry run: Fetching repository: ${ localRepo } `) ) ;
35+ console . log ( chalk . yellow ( `> Dry run: Fetching repository: ${ localRepo } `) ) ;
3436 } else {
3537 await fetchRepo ( localRepo ) ;
3638 }
3739 } else {
3840 if ( options . dryRun ) {
39- console . log ( chalk . bgYellow ( ` Dry run: Cloning repository: ${ repo } `) ) ;
41+ console . log ( chalk . yellow ( `> Dry run: Cloning repository: ${ repo } `) ) ;
4042 } else {
4143 await cloneRepo ( repo , localRepo ) ;
4244 }
@@ -51,7 +53,7 @@ const cloneAction = async (options: CloneOptions, repo: string) => {
5153 if ( openVsCode ) {
5254 if ( options . dryRun ) {
5355 console . log (
54- chalk . bgYellow ( ` Dry run: Opening repository in VS Code: ${ localRepo } `) ,
56+ chalk . yellow ( `> Dry run: Opening repository in VS Code: ${ localRepo } `) ,
5557 ) ;
5658 } else {
5759 const vscode = await findExecutable ( "code" ) ;
@@ -70,7 +72,7 @@ const cloneAction = async (options: CloneOptions, repo: string) => {
7072
7173await new Command ( )
7274 . name ( "clone" )
73- . version ( "0.1.3 " )
75+ . version ( "0.1.4 " )
7476 . description ( "Clone/Fetch a Git repository into a 'Projects' directory" )
7577 . arguments ( "<repo:string>" )
7678 . option ( "-r, --root <rootDir>" , "The root directory." , {
0 commit comments