add file read to nroff

master
Mr. Robot 3 years ago committed by GitHub
parent c26c9b14b3
commit 223e600029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 @@
}
]
}
}
}

Loading…
Cancel
Save