UPDATE: Adds minimal generated documented functions (#22)

See #21
This commit is contained in:
Nicolás Hatcher Andrés
2024-03-16 12:57:25 +01:00
committed by GitHub
parent 1381533b9c
commit 0029901ca3
6 changed files with 515 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
//! Produces documentation of all the implemented IronCalc functions
//! and saves the result to functions.md
//!
//! Usage: documentation
use std::fs;
use ironcalc_base::model::Model;
fn main() {
let mut doc = Vec::new();
for function in Model::documentation() {
doc.push(function.name);
}
let data = doc.join("\n");
fs::write("functions.md", data).expect("Unable to write file");
}