aboutsummaryrefslogtreecommitdiff
path: root/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli.js')
-rwxr-xr-xcli.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli.js b/cli.js
index 8cca28b..78f07e2 100755
--- a/cli.js
+++ b/cli.js
@@ -253,6 +253,16 @@ if ((idx = params.indexOf("-r")) > -1) {
i++;
}
+ // SECRET!!
+ textex = "\\begin{tabularx}{\\textwidth}{*{3}{>{\\RaggedRight\\arraybackslash}X}}\n\n";
+ await data.secrets.forEach(async (secret, ind) => {
+ textex += `{\\small ${secret.secret}}`;
+ textex += ((ind + 1) % 3 == 0 ? "\\\\" : "&") + "\n";
+ if ((ind + 1) % 3 == 0) textex += "\\specialrule{.03em}{0em}{0em}\n";
+ });
+ textex += "\\end{tabularx}\n";
+ await fs.writeFile(__dirname + "/zeitung/parts/generated/secrets.tex", textex);
+
// Final spinal vinyl
textex = "\\begin{tabular}{l l l}\n\n";
await data.users.forEach(async (user, ind) => {