https://github.com/harpertoken/kernel-go
Go CLI for macOS kernel info.
https://github.com/harpertoken/kernel-go
cli go golang kernel macos
Last synced: about 1 month ago
JSON representation
Go CLI for macOS kernel info.
- Host: GitHub
- URL: https://github.com/harpertoken/kernel-go
- Owner: harpertoken
- License: mit
- Created: 2025-09-24T09:33:23.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-24T10:24:03.000Z (9 months ago)
- Last Synced: 2025-09-24T11:40:21.774Z (9 months ago)
- Topics: cli, go, golang, kernel, macos
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
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 (Go)
Go CLI for macOS system/kernel info via uname.
## Usage
```bash
go run main.go
```
## Example
```
Uname output: Darwin ... xnu-11417.140.69...
```
## Requirements
Go 1.19+, macOS
## Conventional Commits
This project uses conventional commit standards for commit messages.
### Setup
To enable commit message validation:
```bash
cp scripts/commit-msg .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
```
### Commit Message Format
Commit messages must:
- Start with a type: `feat:`, `fix:`, `docs:`, `style:`, `refactor:`, `test:`, `chore:`, `perf:`, `ci:`, `build:`, `revert:`
- Be lowercase
- First line ≤60 characters
Example: `feat: add new kernel info display`
### History Cleanup
To rewrite existing commit messages in history:
```bash
git filter-branch --msg-filter 'bash scripts/rewrite_msg.sh' -- --all
git push --force-with-lease
```
## Docker
```bash
docker build -t macos-go-tool .
docker run macos-go-tool
```
Note: Container runs on Linux, so output shows Linux kernel info, not macOS.
## License
MIT