Updater for mq and mq subcommands (mq-check, mq-conv, etc.).
mq-update is a utility to update the mq binary and its subcommands (e.g., mq-check, mq-conv, mq-docs) to the latest version from GitHub releases.
curl -fsSL https://raw.githubusercontent.com/harehare/mq-update/main/scripts/install.sh | bashcargo install --git https://github.com/harehare/mq-update.gitmq-update# Update mq-check to the latest version
mq-update check
# Update mq-conv to the latest version
mq-update convmq-update --target v0.5.12
# or
mq-update --target 0.5.12
# Subcommand with a specific version
mq-update check --target v0.1.0mq-update --current
# Subcommand version
mq-update check --currentmq-update --force[SUBCOMMAND]: Subcommand name to update (e.g.,checkformq-check)-t, --target <VERSION>: Target version to install (defaults to latest)-f, --force: Force reinstall even if already up-to-date--current: Show current version-h, --help: Print help-V, --version: Print version
- Locates the binary (
mqormq-{subcommand}) viawhich - Checks the current version
- Fetches the latest release information from GitHub (
harehare/mqorharehare/mq-{subcommand}) - Downloads the appropriate binary for your platform
- Creates a backup of the existing binary
- Replaces the existing binary with the new one
- Linux (glibc)
- x86_64
- aarch64
- Linux (musl) - Alpine Linux, etc.
- x86_64
- aarch64
- macOS
- x86_64 (Intel)
- aarch64 (Apple Silicon)
- Windows
- x86_64
MIT License - see LICENSE for details.
