From 8fea76f11b1d8b435d957d9cab2fd011e6831f27 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Mon, 29 Jan 2024 11:48:05 -0500 Subject: [PATCH] `luau`: add `ckan`, `ckanapi`, `jq`, `jql` & `psql` to allowed shell cmds --- src/cmd/luau.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/cmd/luau.rs b/src/cmd/luau.rs index 344e80509..f36016ebe 100644 --- a/src/cmd/luau.rs +++ b/src/cmd/luau.rs @@ -1955,16 +1955,21 @@ fn setup_helpers( enum ShellCmd { Awk, Cat, + Ckan, + Ckanapi, Cp, Cut, Df, Echo, Grep, Head, + Jq, + Jql, Ls, Mkdir, Mv, Nl, + Psql, Pwd, Rg, Sed, @@ -1983,8 +1988,8 @@ fn setup_helpers( return helper_err!( "qsv_shellcmd", "Invalid shell command: \"{shellcmd}\". Only the following commands are allowed: \ - awk, cat, cp, cut, df, echo, rg, grep, head, ls, mkdir, mv, nl, pwd, sed, sort, \ - tail, touch, tr, uname, uniq, wc, whoami" + awk, cat, ckan, ckanapi, cp, cut, df, echo, rg, grep, head, jq, jql, ls, mkdir, \ + mv, nl, psql, pwd, sed, sort, tail, touch, tr, uname, uniq, wc, whoami" ); };