From a6fb3923657f5273b18c616f3c8780a7c6deb574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D1=80=D0=BE=D0=BC=D0=B5=D0=BD=D0=BE=D0=BA=20=D0=A0?= =?UTF-8?q?=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Thu, 23 May 2024 10:43:29 +0200 Subject: [PATCH] Added examples of running scripts, and an example with an error --- example/main/example_cli.cli | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/main/example_cli.cli b/example/main/example_cli.cli index 4a45b8dc..8e069b04 100644 --- a/example/main/example_cli.cli +++ b/example/main/example_cli.cli @@ -71,6 +71,12 @@ debug("Debugging parts of the system"){ shell("System command"), cli_start_shell("bash");{ ("Single shell command"), cli_start_shell("bash"); } + +run_python3("Run python"), cli_start_python3(); +run_python3_script("Run python script"), cli_start_python3("/tmp/test.py"); +run_python3_script_manual("Run python script manual") ("Path to script"), cli_start_python3(); +run_python3_script_manual_err("Run python script") ("Path to script"), cli_start_python3("/tmp/test2.py"); + copy("Copy and create a new object") { running("Copy from running db") startup("Copy to startup config"), db_copy("running", "startup"); interface("Copy interface"){