Adding a task to tutor do init command

I added an init.sh script with some ‘echo’ commands to the path

tutor-contrib-myplugin/tutormyplugin/templates/myplugin/tasks/lms

and also added:

    ("lms", ("myplugin", "tasks", "lms", "init.sh")),

to “MY_INIT_TASKS” as explained in file ‘plugin.py’ ,

and reintalled the plugin and also disabled and enabled it again

still I don’t see the output of my script when running


tutor local do init --limit lms

what did I miss?

thanks

I see that my script does run when I run:

tutor local do init --limit=myplugin

but it does not run when just running tutor local do init . Is this the expected behaviour?

Hi @dafnathecool welcome to the community!

When posting, could you please specify which version of Tutor you’re running?

Hi!,

I have version 18.2.2

Hi @tutor-maintainers could anyone help with this question?

@dafnathecool Hi, can you share your complete plugin.py? Thanks