add file read and write for lwp-download

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

@ -15,6 +15,17 @@
{
"code": "sudo lwp-download [url] [file]\n"
}
],
"file-read": [
{
"description": "The file path must be absolute.",
"code": "TF=$(mktemp)\nlwp-download \"file://[file]\" $TF\ncat $TF\n"
}
],
"file-write": [
{
"code": "TF=$(mktemp)\necho [data] >$TF\nlwp-download file://$TF [file]\n"
}
]
}
}
}

Loading…
Cancel
Save