https://github.com/cchexcode/ranger
ranger is an application bootstrapping tool using handlebars placeholder syntax
https://github.com/cchexcode/ranger
Last synced: 9 months ago
JSON representation
ranger is an application bootstrapping tool using handlebars placeholder syntax
- Host: GitHub
- URL: https://github.com/cchexcode/ranger
- Owner: cchexcode
- License: mit
- Created: 2024-01-30T02:59:28.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-12T22:05:23.000Z (about 1 year ago)
- Last Synced: 2024-11-27T07:19:12.156Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: docs/README.md
- License: LICENSE
Awesome Lists containing this project
README
# ranger
`ranger` is tool for templating entire folder structures using the comprehensive `handlebars` syntax.
Examples:
* `ranger generate local -f ./templates/example -o ./test --force`
* `ranger generate local`: Generate via a local template.
* `-f ./templates/example`: The location of the template to use.
* `-o ./test`: The output folder.
* `--force`: Force overwriting the folder if it exists (delete & recreate).
* `ranger generate git --repo "https://github.com/replicadse/ranger" --branch master --folder ./templates/example -o ./test`
* `ranger generate git`: Generate via git repo (will temporarily check out to a temp dir that is cleared after use).
* `--repo "https://github.com/replicadse/ranger"`: The repository containing the template.
* `--branch`: The branch to check out.
* `--folder`: The folder to use within the repository.
* `-o ./test`: The output folder.
# Rangerfile
If the template folder (local, git, ...) contains a `.ranger.yaml` file, further information might be specified in there. This includes variable default values, helper functions etc.