Module lua.nd.utils

Some random utilities I needed

Functions

os_capture (cmd, raw) Capture os command output
interp (s, tab) Replace values in a string.
set (list) Convert a list to a set


Functions

os_capture (cmd, raw)
Capture os command output

Parameters:

  • cmd string: Command to execute
  • raw bool: Capture raw?
interp (s, tab)
Replace values in a string.

Parameters:

  • s string: The string to replace values in
  • tab table: A table of find/replaces

Returns:

    string: Updated string
set (list)
Convert a list to a set

Parameters:

  • list table: A list of items

Returns:

    set: A set of items
generated by LDoc 1.4.6 Last updated 2021-12-19 19:09:44