From 223e600029ac60af700f1e09a945b71ec731ace1 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Wed, 23 Dec 2020 15:12:01 +0100 Subject: [PATCH] add file read to nroff --- data/nroff.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data/nroff.json b/data/nroff.json index a35266b..b9756c2 100644 --- a/data/nroff.json +++ b/data/nroff.json @@ -1,5 +1,11 @@ { "functions": { + "file-read": [ + { + "description": "The file is typeset and some warning messages may appear.", + "code": "nroff [file]\n" + } + ], "shell": [ { "code": "TF=$(mktemp -d)\necho '#!/bin/sh' > $TF/groff\necho '/bin/sh' >> $TF/groff\nchmod +x $TF/groff\nGROFF_BIN_PATH=$TF nroff\n" @@ -11,4 +17,4 @@ } ] } -} \ No newline at end of file +}