committed by
GitHub
parent
1381533b9c
commit
0029901ca3
@@ -34,3 +34,8 @@ path = "src/lib.rs"
|
||||
[[bin]]
|
||||
name = "test"
|
||||
path = "src/bin/test.rs"
|
||||
|
||||
|
||||
[[bin]]
|
||||
name = "documentation"
|
||||
path = "src/bin/documentation.rs"
|
||||
17
xlsx/src/bin/documentation.rs
Normal file
17
xlsx/src/bin/documentation.rs
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user