pub fn generate_sitemap(matches: &ArgMatches) -> SitemapResult<()>Expand description
Generates a sitemap based on the provided command-line arguments.
This function handles the core logic of sitemap generation, including reading URLs, creating sitemap entries, and writing the output file.
§Arguments
matches- The matches from the command-line argument parsing
§Errors
This function will return an error if:
- There are issues reading input files
- URL parsing fails
- The number of URLs exceeds the maximum limit
- Sitemap generation fails
- Writing output files fails