scriptlike.core

Members

Aliases

scriptlikeTraceCommands
alias scriptlikeTraceCommands = scriptlikeEcho

Alias for backwards-compatibility. This will be deprecated in the future. You should use scriptlikeEcho insetad.

Functions

_interp_text
string _interp_text(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
echoCommand
void echoCommand(string msg)

Maintained for backwards-compatibility. Will be deprecated. Use 'yap' instead.

interp
string interp()

Interpolated string (ie, variable expansion).

testFileOperation
void testFileOperation(void delegate() test)
Undocumented in source. Be warned that the author may not have intended to support it.
tmpName
string tmpName(string id, string suffix, string func)
Undocumented in source.
unittest_tryRemovePath
void unittest_tryRemovePath(string path)
Undocumented in source.
yap
void yap(T args)
yapFunc
void yapFunc(T args)

Output text lazily through scriptlike's echo logger. Does nothing if scriptlikeEcho and scriptlikeDryRun are both false.

Manifest constants

pwd
enum pwd;
Undocumented in source.
pwd
enum pwd;
Undocumented in source.
quiet
enum quiet;
Undocumented in source.
quiet
enum quiet;
Undocumented in source.

Variables

checkResult
auto checkResult;
Undocumented in source.
gagEcho
auto gagEcho;
Undocumented in source.
scriptlikeCustomEcho
void delegate(string) scriptlikeCustomEcho;

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 scriptlikeDryRun;

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 scriptlikeEcho;

If true, all commands will be echoed. By default, they will be echoed to stdout, but you can override this with scriptlikeCustomEcho.

Meta

Authors

Nick Sabalausky