Crate gign

Source

Structs§

TemplateEntry
A struct that represents a template in the templates database.

Functions§

append_to_gitignore
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.
clone_templates_repo
Clones the templates repository into the default directory
command_is_available
Checks if the given command is available in the system path.
error
Helper function to print error message and exit with code 1
find_closest
Find the closest template to the given name Returns None if no suggestion is found.
generate_gitignore
Generate a gitignore file from the given template names.
get_app_dir
Get the application directory
get_templates
Get the default templates database
init_default_templates
Initialize the default templates database
pull_templates_repo
Update the default templates database This will download the latest patterns database from the GitHub repository.