Skip to content

Commit cddef86

Browse files
committed
chore: log when a repo is reused
1 parent 3f4fa91 commit cddef86

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/commands/default.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,13 @@ async function cloneMissingRepos(cfg: RootConfig) {
184184
if (fs.exists(dest)) return
185185
fs.mkdir(dirname(dest))
186186
fs.link(dest, relative(dirname(dest), repoPaths[repoHash]))
187-
return
187+
return log(
188+
green('+'),
189+
'Linked',
190+
green(cwdRelative(dest)),
191+
'to',
192+
yellow(cwdRelative(repoPaths[repoHash]))
193+
)
188194
}
189195
// Currently, indo does not support nested .indo.json files that don't
190196
// have their own repository. As a workaround for testing purposes,

0 commit comments

Comments
 (0)