cig
cig copied to clipboard
Recursively search folders with a parameterized depth instead of walking
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
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.