Module build.toolchain.utils
Utilities for toolchain modules.
Note: This module is not part of public API!
Functions
execute (...) | Runs a command displaying its execution on standard output. |
push_flags (tab, flag, values, variables) | Pushes the flag with values into the given table tab and substitutes
all variables in values . |
Functions
- execute (...)
-
Runs a command displaying its execution on standard output.
Parameters:
- ... string The command and arguments.
Returns:
-
bool true if command succeeds (status code 0), false otherwise.
- push_flags (tab, flag, values, variables)
-
Pushes the
flag
withvalues
into the given tabletab
and substitutes all variables invalues
.Parameters:
- tab {string,...} The target table to push flags into.
- flag
string
The flag with single format pattern to be substituted by
values
. - values {string,...}, string or nil
- variables optional {[string]=...}