Fast Zig CLI tool to create projects from a set of opinionated language templates
mkpr <template> <project-name>
- Use
mkpr ls
for a list of templates
Originally based on my project golaunch, mkpr is intended to be a comprehensive set of utility scripts and templates for my personal projects.
Just was chosen as the command runner of choice for its flexibility and simple shell-like syntax. Simply running just build
and having a cohesive toolchain is far easier and less headache than having build scripts with different syntax for each language I use for a project.
- I'll add to some package repos eventually
- Until then, there is binaries available in releases
- Requires
zig
version 0.14.0 andjust
installed
git clone https://github.com/Sophed/mkpr
cd mkpr
just build
- Output binaries can be found in
zig-out/bin/
- Requires
go
installed
Click to view project structure
example
├── .gitignore <- language specific ignores
├─ app
│ ├─ main.go
│ └─ main_test.go
├─ build
│ └─ bin <- output binary
├─ go.mod
├─ justfile <- build/run/test scripts
├─ LICENSE <- auto generated MIT license from username/current year
└─ README.md <- auto generated with project name
- Requires
cargo
installed - The built in
cargo init
was mostly sufficient, this template just adds meta files
Click to view project structure
example
├── .gitignore <- language specific ignores
├── Cargo.lock
├── Cargo.toml
├── justfile <- build/run/test scripts
├── LICENSE <- auto generated MIT license from username/current year
├── README.md <- auto generated with project name
├── src
│ └── main.rs
├── target
│ └── ...
└── tests
└── example_test.rs
- Requires
zig
installed (only version 0.14.0 tested, newer versions should still work)
Click to view project structure
example
├── .gitignore <- language specific ignores
├── build.zig
├── build.zig.zon
├── justfile <- build/run scripts
├── LICENSE <- auto generated MIT license from username/current year
├── README.md <- auto generated with project name
└── src
└── main.zig