Structs
A struct that represents a template in the templates database.
Functions
Appends to the root level .gitignore of the repository from path If the file doesn’t exist it will be created. It will return the path to the .gitignore file.
Clones the templates repository into the default directory
Checks if the given command is available in the system path.
Helper function to print error message and exit with code 1
Find the closest template to the given name Returns None if no suggestion is found.
Generate a gitignore file from the given template names.
Get the application directory
Get the default templates database
Initialize the default templates database
Update the default templates database This will download the latest patterns database from the GitHub repository.