You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
469 B
15 lines
469 B
from calculate.scripts.scripts import Script, Task
|
|
|
|
|
|
def action(output, arg1: str) -> str:
|
|
'''Задача выполняемая скриптом ниже.'''
|
|
return f'os.calculate = {arg1}'
|
|
|
|
|
|
# Тестовый скрипт.
|
|
test_script = Script('test_script'
|
|
).tasks(Task(id='task',
|
|
name="Task",
|
|
action=action,
|
|
args=["os.calculate"]))
|