Examples

Installation

Hwaro is written in Crystal. You can install it from source or use a pre-built binary.

Homebrew

brew tap hahwul/hwaro
brew install hwaro

Snapcraft

sudo snap install hwaro

APK (Alpine Linux)

Download the .apk package from the latest release and install it:

apk add --allow-untrusted hwaro-*.apk

DEB (Debian/Ubuntu)

Download the .deb package from the latest release and install it:

sudo dpkg -i hwaro_*_amd64.deb

RPM (Fedora/RHEL/CentOS)

Download the .rpm package from the latest release and install it:

sudo rpm -i hwaro-*.x86_64.rpm

AUR (Arch Linux)

yay -S hwaro

Nix

Install

nix profile install github:hahwul/hwaro

Run without installing

nix run github:hahwul/hwaro -- --version

Development shell

nix develop github:hahwul/hwaro

Pre-built Binary

Pre-built binaries for macOS and Linux are available on the GitHub Releases page.

  1. Download the binary for your platform from the latest release.
  2. Move the binary to a directory in your PATH.
# Example for Linux (amd64)
chmod +x hwaro-v*-linux-x86_64
sudo mv hwaro-v*-linux-x86_64 /usr/local/bin/hwaro

From Source

Prerequisites

Build

git clone https://github.com/hahwul/hwaro
cd hwaro
shards install
shards build --release

The binary is created at ./bin/hwaro.

Add to PATH (Optional)

# Copy to a directory in your PATH
sudo cp ./bin/hwaro /usr/local/bin/

# Or add the bin directory to PATH
export PATH="$PATH:$(pwd)/bin"

Verify Installation

hwaro --version

Next Steps