Helper scripts
Helper scripts are pre-written scripts to help implement lifecycle scripts.
Last updated
Was this helpful?
Helper scripts are pre-written scripts to help implement lifecycle scripts.
Last updated
Was this helpful?
When bootstrapping a sandbox container or virtual machine, Instruqt injects some helper scripts. These scripts assist you in setting up the environment or applying check scripts. See the currently available set of on GitHub.
This article covers the following helper scripts:
fail-message
set-workdir
fail-message
The fail-message
helper script provides feedback to the learner when writing check scripts. The function will write a given string to stdout
, prefixed with FAIL:
.
Consider the following example:
Without the helper script, the format would be:
set-workdir
Consider the following example, which sets the usr
directory as the active working directory:
The set-workdir
script can be used to change the active working directory for a terminal tab from a .