Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sorairolake/sysexits-zig
The system exit codes as defined by <sysexits.h> for Zig
https://github.com/sorairolake/sysexits-zig
exitcode sysexits zig zig-library zig-package ziglang
Last synced: 3 months ago
JSON representation
The system exit codes as defined by <sysexits.h> for Zig
- Host: GitHub
- URL: https://github.com/sorairolake/sysexits-zig
- Owner: sorairolake
- Created: 2024-05-04T11:55:57.000Z (8 months ago)
- Default Branch: develop
- Last Pushed: 2024-09-30T21:43:04.000Z (3 months ago)
- Last Synced: 2024-10-02T07:04:43.819Z (3 months ago)
- Topics: exitcode, sysexits, zig, zig-library, zig-package, ziglang
- Language: Zig
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.adoc
- Contributing: CONTRIBUTING.adoc
- License: LICENSES/Apache-2.0.txt
- Code of conduct: CODE_OF_CONDUCT.md
- Authors: AUTHORS.adoc
Awesome Lists containing this project
README
# sysexits-zig
[![CI][ci-badge]][ci-url]
**sysexits-zig** is a library that provides the system exit code constants as
defined by [``].This library is a port of [sysexits-rs].
## Usage
Add this package to your `build.zig.zon`:
```sh
zig fetch --save git+https://github.com/sorairolake/sysexits-zig.git
```Add the following to your `build.zig`:
```zig
const sysexits = b.dependency("sysexits", .{});
exe.root_module.addImport("sysexits", sysexits.module("sysexits"));
```### Documentation
To build the documentation:
```sh
zig build doc
```The result is generated in `zig-out/docs`.
If you want to preview this, run a HTTP server locally. For example:
```sh
python -m http.server -d zig-out/docs
```Then open `http://localhost:8000/` in your browser.
## Zig version
This library is compatible with Zig version 0.13.0.
## Source code
The upstream repository is available at
.The source code is also available at:
-
-## Changelog
Please see [CHANGELOG.adoc].
## Contributing
Please see [CONTRIBUTING.adoc].
## Similar projects
- (Julia)
- (Rust)You can discover more projects at
.## License
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.[ci-badge]: https://img.shields.io/github/actions/workflow/status/sorairolake/sysexits-zig/CI.yaml?branch=develop&style=for-the-badge&logo=github&label=CI
[ci-url]: https://github.com/sorairolake/sysexits-zig/actions?query=branch%3Adevelop+workflow%3ACI++
[``]: https://man.openbsd.org/sysexits
[sysexits-rs]: https://crates.io/crates/sysexits
[CHANGELOG.adoc]: CHANGELOG.adoc
[CONTRIBUTING.adoc]: CONTRIBUTING.adoc
[AUTHORS.adoc]: AUTHORS.adoc
[_REUSE Specification_]: https://reuse.software/spec/