sqrl deps
The deps command loads all packages specified in the squirrels.yml file from their Git repositories.
Usage​
sqrl deps
Description​
This command:
- Reads the
packagessection from yoursquirrels.ymlfile - Downloads each package from its Git repository
- Stores the packages in the
sqrl_packagesdirectory - Makes the packages available for use in your project
Package Configuration​
Packages are configured in the squirrels.yml file under the packages section. Each package should specify:
packages:
- git: https://github.com/owner/repo.git
revision: v1.0.0 # Optional: tag, branch, or commit hash
directory: custom_name # Optional: custom directory name
Examples​
Load all packages specified in squirrels.yml:
sqrl deps
Notes​
- Packages are downloaded into the
sqrl_packagesdirectory - The
sqrl_packagesdirectory should be added to.gitignore - Each package must be a valid Git repository
- If no revision is specified, the default branch will be used
- The directory name defaults to the repository name if not specified
- Packages can be used to share common macros or Python functions across projects