Skip to main content

Helpers

Function NameDescription
add_var_to_fileAdds a variable assignment to a file and creates a backup
restore_fileRestores a file from its backup created by add_var_to_file
read_envReads .env file and evaluates variable expressions in that context
format_errorFormats error messages with decorative borders and includes command output
flunkCauses a test to fail with an optional error message
mktouchCreates a file and any necessary parent directories
fixture_export_codebaseExport codebase source code at the latest commit to the destination directory
fixture_prepare_dirPrepares a directory for fixture use by removing existing content
random_stringGenerates a random alphanumeric string of specified length
trim_fileRemoves the last line from a file
tui_runRuns a TUI script with predefined answers, simulating user input