File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,16 @@ pub fn list_projects_by_language_name(
147147}
148148
149149/// Lists projects by directory name.
150+ /// Note: This function assumes you are referencing the directory *structure* under the `framework`
151+ /// directory.
152+ /// Example: `dir_name` = "Java/gemini"
150153pub fn list_projects_by_dir_name (
151154 dir_name : & str ,
152155 test_type : Option < & str > ,
153156) -> ToolsetResult < Vec < Project > > {
154157 let mut projects = Vec :: new ( ) ;
155158 let mut tfb_path = io:: get_tfb_dir ( ) ?;
156- tfb_path. push ( & format ! ( "frameworks/*/ {}/config.toml" , dir_name) ) ;
159+ tfb_path. push ( & format ! ( "frameworks/{}/config.toml" , dir_name) ) ;
157160 for path in glob ( tfb_path. to_str ( ) . unwrap ( ) ) . unwrap ( ) {
158161 let path_buf: & PathBuf = & path. unwrap ( ) ;
159162 let project_name = config:: get_project_name_by_config_file ( & path_buf) ?;
You can’t perform that action at this time.
0 commit comments