diff --git a/data/split.json b/data/split.json new file mode 100644 index 0000000..630c035 --- /dev/null +++ b/data/split.json @@ -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" + } + ] + } +}