Skip to content

zig init: allow specifying project path #24298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fel1x-developer
Copy link
Contributor

@fel1x-developer fel1x-developer commented Jun 30, 2025

This PR allows zig init to initialize project when path is specified.

Usage:

$ zig init # path not provided, initialize in the current directory
$ zig init foo # create dir named foo if it does not exists, then initialize under ./foo
$ zig init foo/bar # create dir tree foo/bar if it does not exists, then initialize under ./foo/bar

When specified path already exists as non-dir, the cli throws fatal()

Closes: #24290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zig init: allow specifying project directory
1 participant