Module wf.api.v1.process

wf-process helper functions

Functions

tmpfile (ext) Allocate a temporary file.
filename (obj) Retrieve a filename from a string or file reference.
to_file (obj) Convert a filename or reference to a file reference.
to_data (obj) Convert a binary data string or reference to a binary data reference.
inputs (...) Return a list of inputs applicable to this execution of the script, optionally filtered by extension.
touch (name, mode) Access a file without opening or closing it.
symbol (file) Create a symbol name from a string or file reference.
emit_symbol (name, data) Emit a symbol accessible to C code.


Functions

tmpfile (ext)
Allocate a temporary file. This file will be deleted once wf-process finishes operation.

Parameters:

  • ext optional string File extension.

Returns:

    process.File Temporary file reference.
filename (obj)
Retrieve a filename from a string or file reference.

Parameters:

Returns:

    optional string Filename.
to_file (obj)
Convert a filename or reference to a file reference.

Parameters:

Returns:

    process.File File reference.
to_data (obj)
Convert a binary data string or reference to a binary data reference.

Parameters:

Returns:

    process.Data Binary data reference.
inputs (...)
Return a list of inputs applicable to this execution of the script, optionally filtered by extension.

Parameters:

  • ... optional string Optional extensions to filter by.

Returns:

    {process.File,...} Table of process files.
touch (name, mode)
Access a file without opening or closing it. This is required to correctly emit Makefile dependency files, if a file is not accessed via Lua's "io" package (for example, by an external tool).

Parameters:

  • name string Filename, as in Lua's "io" package.
  • mode string File access mode, as in Lua's "io" package.
symbol (file)
Create a symbol name from a string or file reference. Error if not possible.

Parameters:

Returns:

    string Symbol name.
emit_symbol (name, data)
Emit a symbol accessible to C code.

Parameters:

generated by LDoc 1.5.0 Last updated 2024-08-03 18:41:58