execline-json/json
2022-08-05 22:49:59 +02:00

17 lines
280 B
Text
Executable file

#!/bin/execlineb
multisubstitute {
importas -ui name 1
importas -ui input 2
}
backtick defines {
backtick -E cleaned { pipeline { s6-echo "$input" } tr -d "\\n" }
json-defines "$name" "$cleaned"
}
importas -uisd "\n" defines defines
shift -n 2
elgetpositionals
$defines
$@