Expand description
Contains functions used by the CLI to get information from files or to create files
Functionsยง
- create_
tag_ files - Creates tag files for compiled Databind code. Also checks if tags already exist and merges them
- find_
config_ in_ parents - Try to find a config file
- get_
namespace - Get namespace (name of folder containing the main /functions)
- get_
subfolder_ prefix - Get the prefix of a subfolder before a function call (eg.
"cmd/"
for a subfolder calledcmd
) Used for Databind calls, so a line likecall func
in a subfoldercmd
will becomefunction namespace:cmd/func
- merge_
globs - Convert multiple globs into a
Vec<PathBuf>
- prioritize_
macro_ files - Returns a vector of source files with files beginning with ! appearing first. This is used to ensure that files with global macros are ordered the same across platforms
- read_
vars_ toml - Read the vars.toml file into a HashMap of Strings