Function mamba::transpile_dir
source · pub fn transpile_dir(
dir: &Path,
src: Option<&str>,
target: Option<&str>,
arguments: &Arguments
) -> Result<PathBuf, Vec<String>>
Expand description
Convert *.mamba
files to *.py
.
For input, the rules are as follows: If file, file taken as input. If directory, recursively search all sub-directories for mamba files. If no input given, current directory taken is directory.
For output, the rules are as follows: Output directory to story mamba files. Output directory structure reflects input directory structure. If no output given, target directory created in current directory and output stored here.