Sophed/mkpr
⚡ Fast Zig CLI tool to create projects from a set of opinionated language templates
Fast Zig CLI tool to create projects from a set of opinionated language templates
mkpr <template> <project-name>
mkpr ls
for a list of templatesOriginally 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.
zig
version 0.14.0 and just
installedgit clone https://github.com/Sophed/mkpr
cd mkpr
just build
zig-out/bin/
go
installed 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
cargo
installedcargo init
was mostly sufficient, this template just adds meta files 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
zig
installed (only version 0.14.0 tested, newer versions should still work) 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