Module scriptlike.core
Functions
Name | Description |
_interp_text(args)
|
|
echoCommand(msg)
|
Maintained for backwards-compatibility. Will be deprecated.
Use 'yap' instead.
|
interp()
|
Interpolated string (ie, variable expansion).
|
openSandbox()
|
|
testFileOperation(test)
|
|
tmpName(id, suffix, func)
|
|
unittest_tryRemovePath(path)
|
|
yap(args)
|
Output text lazily through scriptlike's echo logger.
Does nothing if scriptlikeEcho and scriptlikeDryRun are both false.
|
yapFunc(args)
|
Output text lazily through scriptlike's echo logger.
Does nothing if scriptlikeEcho and scriptlikeDryRun are both false.
|
Templates
Name | Description |
trace
|
Debugging aid: Output current file/line to stderr.
|
trace
|
Debugging aid: Output variable name/value and file/line info to stderr.
|
Global variables
Name | Type | Description |
checkResult
|
void
|
|
gagEcho
|
immutable(char[])
|
|
initTest
|
void
|
|
scriptlikeCustomEcho
|
void delegate(string)
|
By default, scriptlikeEcho and scriptlikeDryRun echo to stdout.
You can override this behavior by setting scriptlikeCustomEcho to your own
sink delegate. Since this is used for logging, don't forget to flush your output.
|
scriptlikeDryRun
|
bool
|
If true, then run, tryRun, file write, file append, and all the echoable
commands that modify the filesystem will be echoed to stdout (regardless
of scriptlikeEcho) and NOT actually executed.
|
scriptlikeEcho
|
bool
|
If true, all commands will be echoed. By default, they will be
echoed to stdout, but you can override this with scriptlikeCustomEcho.
|
useTmpName
|
void
|
|
Aliases
Name | Type | Description |
scriptlikeTraceCommands
|
|
Alias for backwards-compatibility. This will be deprecated in the future.
You should use scriptlikeEcho insetad.
|