Skip to content

Commit

Permalink
template for adding a new script
Browse files Browse the repository at this point in the history
  • Loading branch information
cullerton committed Nov 6, 2024
1 parent b9c62f7 commit 8747686
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crc/scripts/script_template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from crc.api.common import ApiError
from crc.scripts.script import Script


class ScriptTemplate(Script):

def get_description(self):
return """This is my description"""

def do_task_validate_only(self, task, study_id, workflow_id, *args, **kwargs):
return self.do_task(task, study_id, workflow_id, *args, **kwargs)

def do_task(self, task, study_id, workflow_id, *args, **kwargs):
pass

0 comments on commit 8747686

Please sign in to comment.