Skip to content

zig init: allow specifying project directory #24290

Open
@fel1x-developer

Description

@fel1x-developer

Currently zig init does not accept creating a project other than current directory, regardless the specified directory exists or not.

As a person who also has some experience in npm/uv, I believe that

$ zig init foo # If directory 'foo' already exists, init in the directory. If not, create 'foo' and then init.

will improve developer experience, especially for newcomers from npm/uv backgrounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions