From 46de9ebb366332e3e3829475edbb9bc9aaefdeb7 Mon Sep 17 00:00:00 2001 From: Tomas Date: Sat, 6 Jan 2024 18:13:50 +0100 Subject: [PATCH] install instructions --- .github/workflows/release.yml | 6 +++--- README.md | 24 +++++++++++++++++++++++- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0188fa..35f4ff5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,12 +13,12 @@ jobs: strategy: matrix: goos: [linux, windows, darwin] - goarch: ["386", amd64, arm64] + goarch: [amd64, arm64] exclude: - - goarch: "386" - goos: darwin - goarch: arm64 goos: windows + - goarch: arm64 + goos: darwin steps: - uses: actions/checkout@v3 - uses: wangyoucao577/go-release-action@v1 diff --git a/README.md b/README.md index f5c5318..18a9d1e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ CLI tool for simply getting cryptocurrency prices from 8 big exchanges. No API key needed. -Exchanges are: +Supported exchanges are: - Binance - Coinbase - Kraken @@ -12,6 +12,28 @@ Exchanges are: - BitFinex - Huobi +## Install + +To install latest release for Linux: + +```sh +wget -O pri https://github.com/t0mk/pri/releases/latest/download/pri-linux-amd64 && chmod +x pri && sudo cp pri /usr/local/bin/ +``` + +.. for MacOS: + +```sh +wget -O pri https://github.com/t0mk/pri/releases/latest/download/pri-darwin-amd64 && chmod +x pri && sudo cp pri /usr/local/bin/ +``` + +## Build + +```sh +git clone https://github.com/t0mk/pri +cd pri +go build +``` + ## Usage Get price of a crypto pair, for example BTC-USDT