Module utils

Source
Expand description

Miscellaneous convenience functions

These functions make some menial tasks a little easier to do, like getting the executable’s name, or running a command

Structs§

CommandOutput
Data returned by utils::run_command()

Functions§

alphabetize
Alphabetizes a vector of strings
capitalize
Capitalize the first letter in a string
get_execname
Get the name of the executable
get_filename
Get the name of the file/directory from a file path
get_input
Show a message and get the user’s input from the standard input
get_parent
Gets the parent directory from a file path
run_command
Run a command and return the output, status code, and whether the command succeeded or not
spawn_process
Spawn a detached process