cig icon indicating copy to clipboard operation
cig copied to clipboard

Recursively search folders with a parameterized depth instead of walking

Open stevenjack opened this issue 9 years ago • 1 comments

Problem

Currently using walk, which is inefficient as we're traversing all the nested folders and files within the ones specified in ~/.cig.yaml.

Solution

Recursively search the folders up to a predetermined depth (say 5 for example) which can be overridden from the command line, for example:

$: cig -t work -d 10

stevenjack avatar Apr 20 '15 08:04 stevenjack

This issue has lessened for some of my repositories since NPM version 3 came out and defaulted to flattening the dependency tree as much as possible. However, instead of their being a deep tree, there is now a wide, shallow tree.

I think this feature is in some way related to https://github.com/stevenjack/cig/issues/30.

JakeChampion avatar Dec 23 '15 23:12 JakeChampion