[wip] cli capability parity
Some checks failed
CI / Rustfmt (push) Successful in 23s
CI / Cargo Audit & Deny (push) Successful in 30s
CI / Web Blocking Checks (push) Successful in 48s
CI / Security Blocking Checks (push) Successful in 8s
CI / Clippy (push) Failing after 1m55s
CI / Web Advisory Checks (push) Successful in 35s
CI / Security Advisory Checks (push) Successful in 37s
CI / Tests (push) Successful in 8m5s
Some checks failed
CI / Rustfmt (push) Successful in 23s
CI / Cargo Audit & Deny (push) Successful in 30s
CI / Web Blocking Checks (push) Successful in 48s
CI / Security Blocking Checks (push) Successful in 8s
CI / Clippy (push) Failing after 1m55s
CI / Web Advisory Checks (push) Successful in 35s
CI / Security Advisory Checks (push) Successful in 37s
CI / Tests (push) Successful in 8m5s
This commit is contained in:
@@ -105,12 +105,9 @@ error: "/opt/attune/packs/core/actions/echo.sh: line 12: jq: command not found"
|
||||
|
||||
**Parsing Logic**:
|
||||
```sh
|
||||
# Read DOTENV-formatted parameters from stdin until delimiter
|
||||
# Read DOTENV-formatted parameters from stdin until EOF
|
||||
while IFS= read -r line; do
|
||||
case "$line" in
|
||||
*"---ATTUNE_PARAMS_END---"*)
|
||||
break
|
||||
;;
|
||||
message=*)
|
||||
message="${line#message=}"
|
||||
# Remove quotes if present
|
||||
@@ -176,9 +173,7 @@ Manual testing verified:
|
||||
|
||||
Example test:
|
||||
```sh
|
||||
echo "message='Hello World!'" > test.txt
|
||||
echo "---ATTUNE_PARAMS_END---" >> test.txt
|
||||
cat test.txt | sh packs/core/actions/echo.sh
|
||||
echo "message='Hello World!'" | sh packs/core/actions/echo.sh
|
||||
# Output: Hello World!
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user