Module files

Source
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 called cmd) Used for Databind calls, so a line like call func in a subfolder cmd will become function 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