Macro libmake::macro_generate_from_config
source · macro_rules! macro_generate_from_config { ($path:expr, $file_type:expr) => { ... }; }
Expand description
Attempts to generate file templates from a configuration file.
§Arguments
$path- The path to the configuration file as a string slice.$file_type- The type of the configuration file (e.g., “json”, “yaml”).
§Returns
Returns a Result<(), String> indicating the success or failure of file generation.
If successful, returns Ok(()). If an error occurs, returns Err with an error message.