https://github.com/harpertoken/kernel-swift
Swift CLI for macOS kernel info.
https://github.com/harpertoken/kernel-swift
cli kernel macos swift
Last synced: about 1 month ago
JSON representation
Swift CLI for macOS kernel info.
- Host: GitHub
- URL: https://github.com/harpertoken/kernel-swift
- Owner: harpertoken
- License: mit
- Created: 2025-09-24T09:24:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-10-08T12:47:39.000Z (9 months ago)
- Last Synced: 2025-10-08T14:39:21.057Z (9 months ago)
- Topics: cli, kernel, macos, swift
- Language: Swift
- Homepage: https://github.com/harpertoken/kernel-swift/issues
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# macOS Kernel Tool (Swift)
Swift CLI for macOS system/kernel info via uname.
## Usage
```bash
swift run
```
## Example
```
System: Darwin, Release: 24.6.0, Version: Darwin Kernel Version 24.6.0...
```
## Requirements
Swift 5+, macOS
## Docker
```bash
docker build -t macos-swift-tool .
docker run macos-swift-tool
```
Note: Container runs on Linux, so output shows Linux kernel info, not macOS.
## Conventional Commits
This project uses conventional commit standards. Commit messages must:
- Start with a type: `feat:`, `fix:`, `docs:`, `style:`, `refactor:`, `test:`, `chore:`, etc.
- Be lowercase
- First line ≤60 characters
### Setup
To enable the commit-msg hook:
```bash
cp scripts/commit-msg .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
```
### History Cleanup
To rewrite existing commit messages (lowercase + truncate):
```bash
bash scripts/rewrite_msg.sh < commit-message-file
```
The git history has been rewritten to conform to these standards.
## License
MIT