generate the scripts(str of json) from list or dict.
(scripts: dict | list)
| 438 | |
| 439 | @staticmethod |
| 440 | def generate_json(scripts: dict | list) -> str: |
| 441 | """ |
| 442 | generate the scripts(str of json) from list or dict. |
| 443 | """ |
| 444 | return json.dumps(ScriptProcess.generate(scripts)) |
| 445 | |
| 446 | @staticmethod |
| 447 | def add_action(func: callable) -> None: |