Is a Tool to write Boilerplate code to help you use your personal collection of
It clones the specified repo into a hidden folder on your computer and copies subfolders from it to whereever you need it. This way you dont even need an internet connection after the first setup.
Since the tool copies subfolders of a repo, it is recommended to structure your templates in a way that no files outside their folder are required.
You can install the app through python's package manager pip using
pip install blablatexIf you want to install a specific version, you can do that
pip install blablatex==1.x.x
- Install Git, Python, this Package, and probably LaTeX
- Find or Create a Git Repository with your LaTeX Templates (public or private)
- For private repositories only: Run
blablatex set-token <your-github-pat>to add authentication- Create a Personal Access Token (PAT) on GitHub with
reposcope: https://github.com/settings/tokens - This token is stored locally in
~/.template_tool/credentials.txtwith restricted permissions
- Create a Personal Access Token (PAT) on GitHub with
- Run
blablatex set-repo <url>to connect it to your Repository
- Run
blablatex init <templateName> [newFolderName]
This will copy the folder called templateName from your repository into the current directory under the new name newFolderName
This list can be displayed by running blablatex --help
initCopy a template to the current folder (optionally renaming the folder).listList available templates.pathGet the full path of the local RepositoryrefreshForce refresh the local copy of the repo.set-repoSet the template repository URL.set-tokenSet GitHub Personal Access Token for private repository access.clear-tokenRemove stored GitHub Personal Access Token.versionDisplay the version Number and Exit
- Add support for private repositories with GitHub Personal Access Token (PAT) authentication
- Add command
set-tokento configure GitHub PAT for private repository access - Add command
clear-tokento remove stored authentication token - Credentials are stored securely with restricted file permissions
- Update
set-repocommand to show when authentication is configured
- Credentials are stored locally with restrictive permissions (owner read/write only)
- Tokens are never displayed or logged by the application
Prevent a crash when cloning the Remote-Repo from Scratch.
- Add Command
versionto display current Version number - Now Works offline with most recent status
Fix a crash that is caused by failed pulls from Git Remote Repository.
Initial Release, add the following commands:
set-repoSet the template repository URL.pathGet the full path of the local RepositorylistList available templates.initCopy a template to the current folder (optionally renaming the folder).refreshForce refresh the local copy of the repo.