project-forge

Crates.ioproject-forge
lib.rsproject-forge
version1.0.2
sourcesrc
created_at2024-01-05 22:10:49.831221
updated_at2024-10-12 19:52:48.727985
descriptionEasy CLI tool for creating projects from templates
homepagehttps://github.com/PsichiX/project-forge
repositoryhttps://github.com/PsichiX/project-forge
max_upload_size
id1090538
size26,571
Patryk BudzyƄski (PsichiX)

documentation

https://docs.rs/project-forge

README

Project Forge

Easy CLI tool for creating projects from templates

Install and update

cargo install -f project-forge

Usage

project-forge --help
Usage: project-template.exe [OPTIONS] <PROJECT_NAME> <PATH> <TEMPLATE>

Arguments:
  <PROJECT_NAME>  Project name
  <PATH>          Output project directory
  <TEMPLATE>      Template content path. Can be directory or ZIP file (must have "zip" extension)

Options:
  -p, --params <KEY:VALUE>  Additional parameters map
  -v, --verbose             Print CLI information
  -h, --help                Print help
  -V, --version             Print version

Typical use:

project-forge awesome-project ./template/output ./template/input

Produces files structure from ./template/input source folder or ZIP file, which gets generated into ./template/output directory, with awesome-project as PROJECT_NAME for *.chrobry file templates being processed into regular text files.

Passing additional parameters for replacement in *.chrobry file templates.

project-forge other-project ./template/output ./template/input.zip -p "EVERYTHING:42"

More about *.chrobry file templates: https://github.com/PsichiX/Chrobry

Commit count: 5

cargo fmt