homebrew tap

pull/15/head
Miguel Mota 6 years ago
parent 9f860724ef
commit 1dc581f2a8

@ -25,6 +25,7 @@ Yes, it's fast.
- [Shortcuts](#shortcuts)
- [Config](#config)
- [FAQ](#faq)
- [Development](#development)
- [License](#license)
## Features
@ -38,6 +39,7 @@ Yes, it's fast.
- Save and view favorite coins
- Color support
- Help menu
- Offline cache
- Works on macOS, Linux, and Windows
## Installing
@ -342,6 +344,14 @@ Action|Description
- A: Press <kbd>?</kbd> to toggle the help menu. Press <kbd>q</kbd> to close help menu.
## Development
Build snap
```bash
$ make snap/build
```
## License
Released under the [Apache 2.0](./LICENSE.md) license.

@ -1,6 +1,8 @@
package cointop
import (
"flag"
"fmt"
"log"
"os"
"sync"
@ -60,6 +62,13 @@ type Cointop struct {
// Run runs cointop
func Run() {
var ver bool
flag.BoolVar(&ver, "v", false, "Version")
flag.Parse()
if ver {
fmt.Println("cointop version 1.0.0")
return
}
var debug bool
if os.Getenv("DEBUG") != "" {
debug = true

@ -0,0 +1,14 @@
Homebrew tap for `cointop`
## Install
```bash
brew tap miguelmota/cointop/homebrew
brew install cointop
```
## Installing from source
```bash
brew install --build-from-source cointop.rb
```

@ -0,0 +1,24 @@
require "language/go"
class Cointop < Formula
desc "An interactive terminal based UI application for tracking cryptocurrencies"
homepage "https://cointop.sh"
url "https://github.com/miguelmota/cointop/archive/0.0.1.tar.gz"
sha256 "3b2b039da68c92d597ae4a6a89aab58d9741132efd514bbf5cf1a1a151b16213"
revision 1
head "https://github.com/miguelmota/cointop.git"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
path = buildpath/"src/github.com/miguelmota/cointop"
system "go", "get", "-u", "github.com/miguelmota/cointop"
cd path do
system "go", "build", "-o", "#{bin}/cointop"
end
end
test do
system "true"
end
end
Loading…
Cancel
Save