Module utils

Source
Expand description

Custom helper utilities

Structs§

TrackingFile
Represents the file storing entries of tracked repositories

Constants§

APP_NAME
SPINNER_TICK

Functions§

handle_error
Prints given error message to the standard error with application name and then exits the application with specified error code
path_is_repo
Checks if a given path is a git repository
repo_is_tracked
Checks if a given repository has an entry in the tracking file
repos_valid
Checks if the given repositories are valid and makes their paths absolute, prints an error message for every invalid entry