You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #1809 we should have a configurable option on command line such as --max-depth and configuration value max-depth that can control the level of directories to traverse when using the walk_tree method, by default max_depth=None is set which will traverse entire directory tree
I think this feature would be useful when one wants to traverse level 1 which is only files within a directory and not all sub-directories.
This feature would be useful let's say one wants to build all buildspecs in tutorials/*.yml and user just does buildtest --max-depth=1 bd -b tutorials/
Suggest potential solution
The configuration value would be defined as follows
system:
generic:
max-depth: 1
Note that if its defined in configuration this will be the default behavior and one would either update or remove the value if they want the default behavior or set it on the command line.
The max-depth must be an integer and >=0
Additional Information
No response
Post question in Slack
I agree that I posted my question in slack before creating this issue
Is there an existing issue
I confirm there is no existing issue for this issue
The text was updated successfully, but these errors were encountered:
Please describe your feature
Similar to #1809 we should have a configurable option on command line such as
--max-depth
and configuration valuemax-depth
that can control the level of directories to traverse when using the walk_tree method, by defaultmax_depth=None
is set which will traverse entire directory treebuildtest/buildtest/utils/file.py
Lines 170 to 177 in 0804a13
I think this feature would be useful when one wants to traverse level 1 which is only files within a directory and not all sub-directories.
This feature would be useful let's say one wants to build all buildspecs in
tutorials/*.yml
and user just doesbuildtest --max-depth=1 bd -b tutorials/
Suggest potential solution
The configuration value would be defined as follows
Note that if its defined in configuration this will be the default behavior and one would either update or remove the value if they want the default behavior or set it on the command line.
The
max-depth
must be an integer and >=0Additional Information
No response
Post question in Slack
Is there an existing issue
The text was updated successfully, but these errors were encountered: