json-script.json 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [
  2. [ "exec", "%EXECVAR%", "/%%/" ],
  3. [ "if",
  4. [ "eq", "EQVAR", "eqval" ],
  5. [ "exec_if", "%VAR%", "%%", "jk" ]
  6. ],
  7. [ "case", "CASEVAR", {
  8. "caseval0": ["cmd_case_0", "cmd_case_arg0", "case_cmd_arg1"],
  9. "caseval1": ["cmd_case_1", "cmd_case_arg0", "case_cmd_arg1"]
  10. } ],
  11. [ "if",
  12. [ "and", [ "eq", "EQVAR", "eqval" ],
  13. [ "has", "HASVAR" ],
  14. [ "regex", "REGEXVAR0", "regexval" ],
  15. [ "regex", "REGEXVAR1", [ "regexval10", "regexval11" ] ],
  16. [ "not", [ "eq", "NOTEQVAR", "noteqval" ] ] ],
  17. [ "exec_if_and", "%ANDVAR%" ]
  18. ],
  19. [ "if",
  20. [ "or", [ "eq", "EQVAR", "eqval" ],
  21. [ "has", "HASVAR" ],
  22. [ "regex", "REGEXVAR0", "regexval" ],
  23. [ "regex", "REGEXVAR1", [ "regexval10", "regexval11" ] ],
  24. [ "not", [ "eq", "NOTEQVAR", "noteqval" ] ] ],
  25. [ "exec_if_or", "%ORVAR%" ]
  26. ],
  27. [ "if",
  28. [ "isdir", "%ISDIRVAR%" ],
  29. [ "exec_isdir", "%ISDIRVAR%" ]
  30. ],
  31. [ "return", "foobar" ],
  32. [ "exec_non_reachable", "Arghhh" ]
  33. ]