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

Data returned by utils::run_command()

Functions

Alphabetizes a vector of strings

Capitalize the first letter in a string

find_charDeprecated

Returns the location (starting from 0) of the first instance of a character in a string

get_dirDeprecated

Returns a list of files/directories using path string

Get the name of the executable

Get the name of the file/directory from a file path

Gets the parent directory from a file path

get_shared_valDeprecated

Gets a shared value (temp file in /tmp or .cache)

make_dirDeprecated

Creates directory (and any parents) and handles any errors that may occur

read_fileDeprecated

Abstraction around fs::read_to_string() that includes error handling

Run a command and return the output, statsus code, and whether the command succeeded or not

save_fileDeprecated

Abstraction around fs::write() that includes error handling

set_shared_valDeprecated

Saves a string to a shared value (temp file in /tmp or ~/.cache)