From 149f4213ab596743e57165eefd60602821ca2fa5 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Wed, 23 Dec 2020 15:17:16 +0100 Subject: [PATCH] add data source for split --- data/split.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 data/split.json 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" + } + ] + } +}