tasks
# modules/hello_world.py
import prism.task
import prism.target
class HelloWorld(prism.task.PrismTask):
def run(self, tasks, hooks):
test_str = "Hello, world!"
return test_str# modules/hello_world.py
from prism.decorators import task
@task()
def hello_world(tasks, hooks):
test_str = "Hello, world!"
return test_str# modules/second_task.py
import prism.task
import prism.target
class SecondTask(prism.task.PrismTask):
def run(self, tasks, hooks):
hello_world_str = tasks.ref("hello_world.py")
additional_details = "\n" + "This is a Prism project"!
return hello_world_str + additional_details# modules/second_task.py
import prism.decorators import task
@task()
def second_task(tasks, hooks):
hello_world_str = tasks.ref("hello_world.py")
additional_details = "\n" + "This is a Prism project"!
return hello_world_str + additional_detailsLast updated