sysexits-zig is a library that provides the system exit code constants as
defined by <sysexits.h>
.
This library is a port of sysexits-rs.
Add this package to your build.zig.zon
:
zig fetch --save git+https://github.com/sorairolake/sysexits-zig.git
Add the following to your build.zig
:
const sysexits = b.dependency("sysexits", .{});
exe.root_module.addImport("sysexits", sysexits.module("sysexits"));
To build the documentation:
zig build doc
The result is generated in zig-out/docs
.
If you want to preview this, run a HTTP server locally. For example:
python -m http.server -d zig-out/docs
Then open http://localhost:8000/
in your browser.
This library is compatible with Zig version 0.13.0.
The upstream repository is available at https://github.com/sorairolake/sysexits-zig.git.
The source code is also available at:
Please see CHANGELOG.adoc.
Please see CONTRIBUTING.adoc.
- https://github.com/sorairolake/Sysexits.jl (Julia)
- https://github.com/sorairolake/sysexits-rs (Rust)
You can discover more projects at https://github.com/sorairolake/awesome-sysexits.
Copyright © 2023–2024 Shun Sakai (see AUTHORS.adoc)
This library is distributed under the terms of either the Apache License 2.0 or the MIT License.
This project is compliant with version 3.2 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.