RodriDev23/ZigSkeleton
Zig cli tool that let you create fast proyects.
This CLI tool allows users to quickly set up a basic structure for a Zig project, including essential files such as the main.zig
file and the src
folder. It provides a solid foundation for building and managing Zig projects efficiently.
main.zig
file as the entry point.src
directory for your source files.zig build
setup for easy building in both development and production modes.Clone this repository and navigate into the project directory:
git clone <repository_url>
cd <project_directory>
Build the CLI tool:
zig build --release-fast
After that, you will see a directory like this:
zig-out/
Navigate inside the zig-out
directory, and you'll find another directory called bin
:
ls
ZigSkeleton
Move the binary to /usr/bin/
with the following command:
sudo mv ZigSkeleton /usr/bin
After this, the installation is complete.
To create a new Zig project, simply run the following in your terminal:
ZigSkeleton
This will prompt the program to ask for the project name and generate the following structure:
<project_name>/
├── src/
│ └── main.zig
└── build.zig
At the end, you can run your project and see a "Hello, World!" output:
zig build run
Feel free to open issues or submit pull requests for improvements and features.