From 9f9b10e0326f3554f80983059c3315ed85521f64 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Wed, 18 Mar 2020 10:42:28 +0100 Subject: [PATCH] add data source for dialog --- data/dialog.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/dialog.json diff --git a/data/dialog.json b/data/dialog.json new file mode 100644 index 0000000..89bdd37 --- /dev/null +++ b/data/dialog.json @@ -0,0 +1,20 @@ +{ + "description": "The file is shown in an interactive TUI dialog, thus it is not suitable for binary/too big data.", + "functions": { + "file-read": [ + { + "code": "dialog --textbox \"[file]\" 0 0\n" + } + ], + "suid": [ + { + "code": "./dialog --textbox \"[file]\" 0 0\n" + } + ], + "sudo": [ + { + "code": "sudo dialog --textbox \"[file]\" 0 0\n" + } + ] + } +} \ No newline at end of file