Module scriptlike.core
Functions
Name | Description |
---|---|
echoCommand
|
Maintained for backwards-compatibility. Will be deprecated.
Use 'yap ' instead.
|
yap
|
Output text lazily through scriptlike's echo logger.
Does nothing if scriptlikeEcho and scriptlikeDryRun are both false.
|
yapFunc
|
Output text lazily through scriptlike's echo logger.
Does nothing if scriptlikeEcho and scriptlikeDryRun are both false.
|
Global variables
Name | Type | Description |
---|---|---|
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. Set this to null to go back to Scriptlike's default
of "echo to stdout" again.
|
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 .
|
Aliases
Name | Type | Description |
---|---|---|
scriptlikeTraceCommands
|
Alias for backwards-compatibility. This will be deprecated in the future.
You should use scriptlikeEcho insetad.
|
Authors
Nick Sabalausky
Copyright
Copyright (C) 2014-2015 Nick Sabalausky