aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2021-04-12 23:01:22 +0200
committerTeddy Wing2021-04-12 23:01:22 +0200
commit0c8a97cd2f67481722a9c1eda6cea4d93a2955cf (patch)
tree78307a4a8b90fc9305d83560b6bdb6ceef5e1c83 /src
parent5ac45fb0ed886c794410f91ff1e9fbabc9fc5517 (diff)
downloadformurapid-0c8a97cd2f67481722a9c1eda6cea4d93a2955cf.tar.bz2
Add function documentation
Diffstat (limited to 'src')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index cc5b064..96c0f98 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -96,6 +96,10 @@ fn run() -> anyhow::Result<()> {
}
}
+/// Generate files to fill in the form.
+///
+/// Generates a TOML file at `data_path`, and a PDF with IDs entered in the
+/// form's text fields in `output_path`.
fn generate_fill_helpers<P: AsRef<Path>>(
data_path: P,
output_path: P,
@@ -140,6 +144,7 @@ fn generate_fill_helpers<P: AsRef<Path>>(
Ok(())
}
+/// Fill in `form` with values from `data_path` and write to `output_path`.
fn fill<P: AsRef<Path>>(
data_path: P,
output_path: P,