https://github.com/rodridev23/zigskeleton
Zig cli tool that let you create fast proyects.
https://github.com/rodridev23/zigskeleton
cli-tool zig ziglang
Last synced: 11 months ago
JSON representation
Zig cli tool that let you create fast proyects.
- Host: GitHub
- URL: https://github.com/rodridev23/zigskeleton
- Owner: RodriDev23
- Created: 2024-10-24T19:06:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-24T19:27:55.000Z (over 1 year ago)
- Last Synced: 2025-04-01T21:20:33.022Z (about 1 year ago)
- Topics: cli-tool, zig, ziglang
- Language: Zig
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zig Project Generator CLI
## Overview
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.
## Features
- Generates a `main.zig` file as the entry point.
- Creates a `src` directory for your source files.
- Includes a `zig build` setup for easy building in both development and production modes.
- Automates project setup with a single command.
## Installation
Clone this repository and navigate into the project directory:
```bash
git clone
cd
```
Build the CLI tool:
```bash
zig build --release-fast
```
After that, you will see a directory like this:
```bash
zig-out/
```
Navigate inside the `zig-out` directory, and you'll find another directory called `bin`:
```bash
ls
ZigSkeleton
```
Move the binary to `/usr/bin/` with the following command:
```bash
sudo mv ZigSkeleton /usr/bin
```
After this, the installation is complete.
## Usage
To create a new Zig project, simply run the following in your terminal:
```bash
ZigSkeleton
```
This will prompt the program to ask for the project name and generate the following structure:
```
/
├── src/
│ └── main.zig
└── build.zig
```
At the end, you can run your project and see a "Hello, World!" output:
```bash
zig build run
```
## Contributing
Feel free to open issues or submit pull requests for improvements and features.