Skip to content

Commit

Permalink
Configuration
Browse files Browse the repository at this point in the history
- Calling `defaultConfig()` will now add an entry of type `ARRAY` with key `modman:path` and the starting value is just an array with a single element being the current working directory
  • Loading branch information
deavmi committed Oct 27, 2023
1 parent c57ba13 commit de91de8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/tlang/compiler/configuration.d
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ public final class CompilerConfiguration
config.addConfig(ConfigEntry("types:max_width", 8));
}

/**
* Set the default search paths to be searched
*
* These paths are, namely: (TODO)
*/
import std.file;
string[] searchPaths = [getcwd()];
config.addConfig(ConfigEntry("modman:path", searchPaths));

return config;
}
}

0 comments on commit de91de8

Please sign in to comment.