pub fn package_code(config: &PackagerConfig) -> Result<()>Expand description
Package source code files into a single text file
§Arguments
config- Configuration for packaging
§Errors
Returns Err if:
- Input directory doesn’t exist or can’t be read
- Output file can’t be created
- Any source file can’t be read
§Examples
use code_packager::{package_code, PackagerConfig};
let config = PackagerConfig::default();
package_code(&config).unwrap();