Rename org miguelmota → cointop-sh

pull/192/head
Miguel Mota 3 years ago
parent 0bacbe5b9d
commit f375eec1eb
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -2,15 +2,15 @@ FROM golang:alpine AS build
ARG VERSION ARG VERSION
RUN wget \ RUN wget \
--output-document "/cointop-$VERSION.tar.gz" \ --output-document "/cointop-$VERSION.tar.gz" \
"https://github.com/miguelmota/cointop/archive/$VERSION.tar.gz" \ "https://github.com/cointop-sh/cointop/archive/$VERSION.tar.gz" \
&& wget \ && wget \
--output-document "/cointop-colors-master.tar.gz" \ --output-document "/cointop-colors-master.tar.gz" \
"https://github.com/cointop-sh/colors/archive/master.tar.gz" \ "https://github.com/cointop-sh/colors/archive/master.tar.gz" \
&& mkdir --parents \ && mkdir --parents \
"$GOPATH/src/github.com/miguelmota/cointop" \ "$GOPATH/src/github.com/cointop-sh/cointop" \
"/usr/local/share/cointop/colors" \ "/usr/local/share/cointop/colors" \
&& tar \ && tar \
--directory "$GOPATH/src/github.com/miguelmota/cointop" \ --directory "$GOPATH/src/github.com/cointop-sh/cointop" \
--extract \ --extract \
--file "/cointop-$VERSION.tar.gz" \ --file "/cointop-$VERSION.tar.gz" \
--strip-components 1 \ --strip-components 1 \
@ -22,8 +22,8 @@ RUN wget \
&& rm \ && rm \
"/cointop-$VERSION.tar.gz" \ "/cointop-$VERSION.tar.gz" \
/cointop-colors-master.tar.gz \ /cointop-colors-master.tar.gz \
&& cd "$GOPATH/src/github.com/miguelmota/cointop" \ && cd "$GOPATH/src/github.com/cointop-sh/cointop" \
&& CGO_ENABLED=0 go install -ldflags "-s -w -X 'github.com/miguelmota/cointop/cointop.version=$VERSION'" \ && CGO_ENABLED=0 go install -ldflags "-s -w -X 'github.com/cointop-sh/cointop/cointop.version=$VERSION'" \
&& cd "$GOPATH" \ && cd "$GOPATH" \
&& rm -r src/github.com \ && rm -r src/github.com \
&& apk add --no-cache upx \ && apk add --no-cache upx \

@ -30,18 +30,18 @@ debug:
.PHONY: build .PHONY: build
build: build:
go build -ldflags "-X github.com/miguelmota/cointop/cointop.version=$(VERSION)" -o bin/cointop main.go go build -ldflags "-X github.com/cointop-sh/cointop/cointop.version=$(VERSION)" -o bin/cointop main.go
# http://macappstore.org/upx # http://macappstore.org/upx
build-mac: clean-mac build-mac: clean-mac
env GOARCH=amd64 go build -ldflags "-s -w -X github.com/miguelmota/cointop/cointop.version=$(VERSION)" -o bin/macos/cointop && upx bin/macos/cointop env GOARCH=amd64 go build -ldflags "-s -w -X github.com/cointop-sh/cointop/cointop.version=$(VERSION)" -o bin/macos/cointop && upx bin/macos/cointop
build-linux: clean-linux build-linux: clean-linux
env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X github.com/miguelmota/cointop/cointop.version=$(VERSION)" -o bin/linux/cointop && upx bin/linux/cointop env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X github.com/cointop-sh/cointop/cointop.version=$(VERSION)" -o bin/linux/cointop && upx bin/linux/cointop
build-multiple: clean build-multiple: clean
env GOARCH=amd64 go build -ldflags "-s -w -X github.com/miguelmota/cointop/cointop.version=$(VERSION)" -o bin/cointop64 && upx bin/cointop64 && \ env GOARCH=amd64 go build -ldflags "-s -w -X github.com/cointop-sh/cointop/cointop.version=$(VERSION)" -o bin/cointop64 && upx bin/cointop64 && \
env GOARCH=386 go build -ldflags "-s -w -X github.com/miguelmota/cointop/cointop.version=$(VERSION)" -o bin/cointop32 && upx bin/cointop32 env GOARCH=386 go build -ldflags "-s -w -X github.com/cointop-sh/cointop/cointop.version=$(VERSION)" -o bin/cointop32 && upx bin/cointop32
install: build install: build
sudo mv bin/cointop /usr/local/bin sudo mv bin/cointop /usr/local/bin
@ -96,7 +96,7 @@ snap-clean:
snap-stage: snap-stage:
# https://github.com/elopio/go/issues/2 # https://github.com/elopio/go/issues/2
mv go.mod go.mod~ ;GO111MODULE=off GOFLAGS="-ldflags=-s -ldflags=-w -ldflags=-X=github.com/miguelmota/cointop/cointop.version=$(VERSION)" snapcraft stage; mv go.mod~ go.mod mv go.mod go.mod~ ;GO111MODULE=off GOFLAGS="-ldflags=-s -ldflags=-w -ldflags=-X=github.com/cointop-sh/cointop/cointop.version=$(VERSION)" snapcraft stage; mv go.mod~ go.mod
snap-install: snap-install:
sudo apt install snapd sudo apt install snapd
@ -176,7 +176,7 @@ rpm-dirs:
chmod -R a+rwx ~/rpmbuild chmod -R a+rwx ~/rpmbuild
rpm-download: rpm-download:
wget https://github.com/miguelmota/cointop/archive/$(VERSION).tar.gz -O ~/rpmbuild/SOURCES/$(VERSION).tar.gz wget https://github.com/cointop-sh/cointop/archive/$(VERSION).tar.gz -O ~/rpmbuild/SOURCES/$(VERSION).tar.gz
copr-install-cli: copr-install-cli:
sudo dnf install -y copr-cli sudo dnf install -y copr-cli
@ -210,7 +210,7 @@ brew-test:
brew test cointop.rb brew test cointop.rb
brew-tap: brew-tap:
brew tap cointop/cointop https://github.com/miguelmota/cointop brew tap cointop/cointop https://github.com/cointop-sh/cointop
brew-untap: brew-untap:
brew untap cointop/cointop brew untap cointop/cointop

@ -10,14 +10,14 @@
> Coin tracking for hackers > Coin tracking for hackers
[![License](http://img.shields.io/badge/license-Apache-blue.svg)](https://raw.githubusercontent.com/miguelmota/cointop/master/LICENSE) [![License](http://img.shields.io/badge/license-Apache-blue.svg)](https://raw.githubusercontent.com/cointop-sh/cointop/master/LICENSE)
[![Build Status](https://travis-ci.org/miguelmota/cointop.svg?branch=master)](https://travis-ci.org/miguelmota/cointop) [![Build Status](https://travis-ci.org/cointop-sh/cointop.svg?branch=master)](https://travis-ci.org/cointop-sh/cointop)
[![Go Report Card](https://goreportcard.com/badge/github.com/miguelmota/cointop?)](https://goreportcard.com/report/github.com/miguelmota/cointop) [![Go Report Card](https://goreportcard.com/badge/github.com/cointop-sh/cointop?)](https://goreportcard.com/report/github.com/cointop-sh/cointop)
[![GoDoc](https://godoc.org/github.com/miguelmota/cointop?status.svg)](https://godoc.org/github.com/miguelmota/cointop) [![GoDoc](https://godoc.org/github.com/cointop-sh/cointop?status.svg)](https://godoc.org/github.com/cointop-sh/cointop)
[![Mentioned in Awesome Terminals](https://awesome.re/mentioned-badge.svg)](https://github.com/k4m4/terminals-are-sexy) [![Mentioned in Awesome Terminals](https://awesome.re/mentioned-badge.svg)](https://github.com/k4m4/terminals-are-sexy)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#contributing) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#contributing)
[`cointop`](https://github.com/miguelmota/cointop) is a fast and lightweight interactive terminal based UI application for tracking and monitoring cryptocurrency coin stats in real-time. [`cointop`](https://github.com/cointop-sh/cointop) is a fast and lightweight interactive terminal based UI application for tracking and monitoring cryptocurrency coin stats in real-time.
The interface is inspired by [`htop`](https://en.wikipedia.org/wiki/Htop) and shortcut keys are inspired by [`vim`](https://en.wikipedia.org/wiki/Vim_(text_editor)). The interface is inspired by [`htop`](https://en.wikipedia.org/wiki/Htop) and shortcut keys are inspired by [`vim`](https://en.wikipedia.org/wiki/Vim_(text_editor)).
@ -110,7 +110,7 @@ See [docs.cointop.sh/faq](https://docs.cointop.sh/faq)
See [docs.cointop.sh/contributing](https://docs.cointop.sh/contributing) See [docs.cointop.sh/contributing](https://docs.cointop.sh/contributing)
_Many thanks to [Simon Roberts](https://github.com/lyricnz), [Alexis Hildebrandt](https://github.com/afh), and all the [contributors](https://github.com/miguelmota/cointop/graphs/contributors) that made cointop better._ _Many thanks to [Simon Roberts](https://github.com/lyricnz), [Alexis Hildebrandt](https://github.com/afh), and all the [contributors](https://github.com/cointop-sh/cointop/graphs/contributors) that made cointop better._
## Social ## Social
@ -136,3 +136,5 @@ Thank you for tips! 🙏
## License ## License
Released under the [Apache 2.0](./LICENSE) license. Released under the [Apache 2.0](./LICENSE) license.
© [Miguel Mota](https://github.com/miguelmota)

@ -1,7 +1,7 @@
package main package main
import ( import (
cmd "github.com/miguelmota/cointop/cmd/commands" cmd "github.com/cointop-sh/cointop/cmd/commands"
) )
func main() { func main() {

@ -1,8 +1,8 @@
package cmd package cmd
import ( import (
"github.com/miguelmota/cointop/cointop" "github.com/cointop-sh/cointop/cointop"
"github.com/miguelmota/cointop/pkg/filecache" "github.com/cointop-sh/cointop/pkg/filecache"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/miguelmota/cointop/cointop" "github.com/cointop-sh/cointop/cointop"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -3,7 +3,7 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/miguelmota/cointop/cointop" "github.com/cointop-sh/cointop/cointop"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -3,7 +3,7 @@ package cmd
import ( import (
"errors" "errors"
"github.com/miguelmota/cointop/cointop" "github.com/cointop-sh/cointop/cointop"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -1,8 +1,8 @@
package cmd package cmd
import ( import (
"github.com/miguelmota/cointop/cointop" "github.com/cointop-sh/cointop/cointop"
"github.com/miguelmota/cointop/pkg/filecache" "github.com/cointop-sh/cointop/pkg/filecache"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -5,7 +5,7 @@ import (
"os" "os"
"strconv" "strconv"
"github.com/miguelmota/cointop/cointop" "github.com/cointop-sh/cointop/cointop"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "time"
cssh "github.com/miguelmota/cointop/pkg/ssh" cssh "github.com/cointop-sh/cointop/pkg/ssh"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/miguelmota/cointop/cointop" "github.com/cointop-sh/cointop/cointop"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/miguelmota/cointop/cointop" "github.com/cointop-sh/cointop/cointop"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

@ -7,10 +7,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/miguelmota/cointop/pkg/chartplot" "github.com/cointop-sh/cointop/pkg/chartplot"
"github.com/miguelmota/cointop/pkg/timedata" "github.com/cointop-sh/cointop/pkg/timedata"
"github.com/miguelmota/cointop/pkg/timeutil" "github.com/cointop-sh/cointop/pkg/timeutil"
"github.com/miguelmota/cointop/pkg/ui" "github.com/cointop-sh/cointop/pkg/ui"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -5,8 +5,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/miguelmota/cointop/pkg/humanize" "github.com/cointop-sh/cointop/pkg/humanize"
"github.com/miguelmota/cointop/pkg/table" "github.com/cointop-sh/cointop/pkg/table"
) )
// SupportedCoinTableHeaders are all the supported coin table header columns // SupportedCoinTableHeaders are all the supported coin table header columns

@ -9,13 +9,13 @@ import (
"sync" "sync"
"time" "time"
"github.com/miguelmota/cointop/pkg/api" "github.com/cointop-sh/cointop/pkg/api"
"github.com/miguelmota/cointop/pkg/api/types" "github.com/cointop-sh/cointop/pkg/api/types"
"github.com/miguelmota/cointop/pkg/cache" "github.com/cointop-sh/cointop/pkg/cache"
"github.com/miguelmota/cointop/pkg/filecache" "github.com/cointop-sh/cointop/pkg/filecache"
"github.com/miguelmota/cointop/pkg/pathutil" "github.com/cointop-sh/cointop/pkg/pathutil"
"github.com/miguelmota/cointop/pkg/table" "github.com/cointop-sh/cointop/pkg/table"
"github.com/miguelmota/cointop/pkg/ui" "github.com/cointop-sh/cointop/pkg/ui"
"github.com/miguelmota/gocui" "github.com/miguelmota/gocui"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
@ -411,7 +411,7 @@ func NewCointop(config *Config) (*Cointop, error) {
ct.filecache.Get(coinscachekey, &allCoinsSlugMap) ct.filecache.Get(coinscachekey, &allCoinsSlugMap)
} }
// fix for https://github.com/miguelmota/cointop/issues/59 // fix for https://github.com/cointop-sh/cointop/issues/59
// can remove this after everyone has cleared their cache // can remove this after everyone has cleared their cache
for _, v := range allCoinsSlugMap { for _, v := range allCoinsSlugMap {
// Some APIs returns rank 0 for new coins // Some APIs returns rank 0 for new coins

@ -13,8 +13,8 @@ import (
"time" "time"
"unicode/utf8" "unicode/utf8"
"github.com/miguelmota/cointop/pkg/pathutil" "github.com/cointop-sh/cointop/pkg/pathutil"
"github.com/miguelmota/cointop/pkg/toml" "github.com/cointop-sh/cointop/pkg/toml"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -6,8 +6,8 @@ import (
"sort" "sort"
"strings" "strings"
color "github.com/miguelmota/cointop/pkg/color" color "github.com/cointop-sh/cointop/pkg/color"
"github.com/miguelmota/cointop/pkg/pad" "github.com/cointop-sh/cointop/pkg/pad"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -3,7 +3,7 @@ package cointop
import ( import (
"fmt" "fmt"
"github.com/miguelmota/cointop/pkg/api" "github.com/cointop-sh/cointop/pkg/api"
) )
// DominanceConfig is the config options for the dominance command // DominanceConfig is the config options for the dominance command

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"sort" "sort"
"github.com/miguelmota/cointop/pkg/pad" "github.com/cointop-sh/cointop/pkg/pad"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -4,7 +4,7 @@ import (
"sync" "sync"
"time" "time"
types "github.com/miguelmota/cointop/pkg/api/types" types "github.com/cointop-sh/cointop/pkg/api/types"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
@ -69,7 +69,7 @@ func (ct *Cointop) processCoins(coins []types.Coin) {
for _, v := range coins { for _, v := range coins {
k := v.Name k := v.Name
// Fix for https://github.com/miguelmota/cointop/issues/59 // Fix for https://github.com/cointop-sh/cointop/issues/59
// some APIs returns rank 0 for new coins // some APIs returns rank 0 for new coins
// or coins with low market cap data so we need to put them // or coins with low market cap data so we need to put them
// at the end of the list // at the end of the list

@ -6,11 +6,11 @@ import (
"strings" "strings"
"time" "time"
types "github.com/miguelmota/cointop/pkg/api/types" types "github.com/cointop-sh/cointop/pkg/api/types"
"github.com/miguelmota/cointop/pkg/color" "github.com/cointop-sh/cointop/pkg/color"
"github.com/miguelmota/cointop/pkg/humanize" "github.com/cointop-sh/cointop/pkg/humanize"
"github.com/miguelmota/cointop/pkg/pad" "github.com/cointop-sh/cointop/pkg/pad"
"github.com/miguelmota/cointop/pkg/ui" "github.com/cointop-sh/cointop/pkg/ui"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -1,7 +1,7 @@
package cointop package cointop
import ( import (
"github.com/miguelmota/cointop/pkg/ui" "github.com/cointop-sh/cointop/pkg/ui"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -12,11 +12,11 @@ import (
"time" "time"
"unicode/utf8" "unicode/utf8"
"github.com/miguelmota/cointop/pkg/asciitable" "github.com/cointop-sh/cointop/pkg/asciitable"
"github.com/miguelmota/cointop/pkg/eval" "github.com/cointop-sh/cointop/pkg/eval"
"github.com/miguelmota/cointop/pkg/humanize" "github.com/cointop-sh/cointop/pkg/humanize"
"github.com/miguelmota/cointop/pkg/pad" "github.com/cointop-sh/cointop/pkg/pad"
"github.com/miguelmota/cointop/pkg/table" "github.com/cointop-sh/cointop/pkg/table"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -5,8 +5,8 @@ import (
"math" "math"
"strings" "strings"
"github.com/miguelmota/cointop/pkg/api" "github.com/cointop-sh/cointop/pkg/api"
"github.com/miguelmota/cointop/pkg/humanize" "github.com/cointop-sh/cointop/pkg/humanize"
) )
// PriceConfig is the config options for the coin price method // PriceConfig is the config options for the coin price method

@ -8,10 +8,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/miguelmota/cointop/pkg/humanize" "github.com/cointop-sh/cointop/pkg/humanize"
"github.com/miguelmota/cointop/pkg/notifier" "github.com/cointop-sh/cointop/pkg/notifier"
"github.com/miguelmota/cointop/pkg/pad" "github.com/cointop-sh/cointop/pkg/pad"
"github.com/miguelmota/cointop/pkg/table" "github.com/cointop-sh/cointop/pkg/table"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -4,8 +4,8 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/miguelmota/cointop/pkg/levenshtein" "github.com/cointop-sh/cointop/pkg/levenshtein"
"github.com/miguelmota/cointop/pkg/ui" "github.com/cointop-sh/cointop/pkg/ui"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"unicode/utf8" "unicode/utf8"
"github.com/miguelmota/cointop/pkg/open" "github.com/cointop-sh/cointop/pkg/open"
"github.com/miguelmota/cointop/pkg/pad" "github.com/cointop-sh/cointop/pkg/pad"
"github.com/miguelmota/cointop/pkg/ui" "github.com/cointop-sh/cointop/pkg/ui"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -5,7 +5,7 @@ import (
"net/url" "net/url"
"strings" "strings"
"github.com/miguelmota/cointop/pkg/ui" "github.com/cointop-sh/cointop/pkg/ui"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -6,8 +6,8 @@ import (
"strings" "strings"
"unicode/utf8" "unicode/utf8"
"github.com/miguelmota/cointop/pkg/pad" "github.com/cointop-sh/cointop/pkg/pad"
"github.com/miguelmota/cointop/pkg/ui" "github.com/cointop-sh/cointop/pkg/ui"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -8,7 +8,7 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/miguelmota/cointop/pkg/open" "github.com/cointop-sh/cointop/pkg/open"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

@ -3,7 +3,7 @@ title: "Intro"
date: 2020-01-01T00:00:00-00:00 date: 2020-01-01T00:00:00-00:00
draft: false draft: false
--- ---
[`cointop`](https://github.com/miguelmota/cointop) is a fast and lightweight interactive terminal based UI application for tracking and monitoring cryptocurrency coin stats in real-time. [`cointop`](https://github.com/cointop-sh/cointop) is a fast and lightweight interactive terminal based UI application for tracking and monitoring cryptocurrency coin stats in real-time.
The interface is inspired by [`htop`](https://en.wikipedia.org/wiki/Htop) and shortcut keys are inspired by [`vim`](https://en.wikipedia.org/wiki/Vim_(text_editor)). The interface is inspired by [`htop`](https://en.wikipedia.org/wiki/Htop) and shortcut keys are inspired by [`vim`](https://en.wikipedia.org/wiki/Vim_(text_editor)).

@ -5,6 +5,6 @@ draft: false
--- ---
# Changelog # Changelog
See [CHANGELOG.md](https://github.com/miguelmota/cointop/blob/master/CHANGELOG.md) on Github for a user-friendly changelog. See [CHANGELOG.md](https://github.com/cointop-sh/cointop/blob/master/CHANGELOG.md) on Github for a user-friendly changelog.
See [releases](https://github.com/miguelmota/cointop/releases) on Github for more detailed commit information of each release. See [releases](https://github.com/cointop-sh/cointop/releases) on Github for more detailed commit information of each release.

@ -9,11 +9,11 @@ Pull requests are welcome!
For contributions please create a new branch and submit a pull request for review. For contributions please create a new branch and submit a pull request for review.
Huge thanks to all the [contributors](https://github.com/miguelmota/cointop/graphs/contributors) that have made cointop better. Huge thanks to all the [contributors](https://github.com/cointop-sh/cointop/graphs/contributors) that have made cointop better.
## Documentation ## Documentation
Keeping documentation up-to-date is always appreciated! If you'd like to make edits or make additions to the docs, the respective files are located under [`docs/content`](https://github.com/miguelmota/cointop/tree/master/docs/content) Keeping documentation up-to-date is always appreciated! If you'd like to make edits or make additions to the docs, the respective files are located under [`docs/content`](https://github.com/cointop-sh/cointop/tree/master/docs/content)
Run the documentation locally with: Run the documentation locally with:

@ -89,7 +89,7 @@ draft: false
## I'm no longer seeing any data! ## I'm no longer seeing any data!
Run cointop with the `--clean` flag to delete the cache. If you're still not seeing any data, then please [submit an issue](https://github.com/miguelmota/cointop/issues/new). Run cointop with the `--clean` flag to delete the cache. If you're still not seeing any data, then please [submit an issue](https://github.com/cointop-sh/cointop/issues/new).
## How do I get a CoinMarketCap Pro API key? ## How do I get a CoinMarketCap Pro API key?
@ -118,7 +118,7 @@ draft: false
## I can I add my own API to cointop? ## I can I add my own API to cointop?
Fork cointop and add the API that implements the API [interface](https://github.com/miguelmota/cointop/blob/master/cointop/common/api/interface.go) to [`cointop/cointop/common/api/impl/`](https://github.com/miguelmota/cointop/tree/master/cointop/common/api/impl). You can use the CoinGecko [implementation](https://github.com/miguelmota/cointop/blob/master/cointop/common/api/impl/coingecko/coingecko.go) as reference. Fork cointop and add the API that implements the API [interface](https://github.com/cointop-sh/cointop/blob/master/cointop/common/api/interface.go) to [`cointop/cointop/common/api/impl/`](https://github.com/cointop-sh/cointop/tree/master/cointop/common/api/impl). You can use the CoinGecko [implementation](https://github.com/cointop-sh/cointop/blob/master/cointop/common/api/impl/coingecko/coingecko.go) as reference.
## I installed cointop without errors but the command is not found. ## I installed cointop without errors but the command is not found.
@ -199,11 +199,11 @@ draft: false
LANG=en_US.utf8 TERM=xterm-256color cointop LANG=en_US.utf8 TERM=xterm-256color cointop
``` ```
If you're on Windows (PowerShell, Command Prompt, or WSL), please see the [wiki](https://github.com/miguelmota/cointop/wiki/Windows-Command-Prompt-and-WSL-Font-Support) for font support instructions. If you're on Windows (PowerShell, Command Prompt, or WSL), please see the [wiki](https://github.com/cointop-sh/cointop/wiki/Windows-Command-Prompt-and-WSL-Font-Support) for font support instructions.
## How do I install Go on Ubuntu? ## How do I install Go on Ubuntu?
There's instructions on installing Go on Ubuntu in the [wiki](https://github.com/miguelmota/cointop/wiki/Installing-Go-on-Ubuntu). There's instructions on installing Go on Ubuntu in the [wiki](https://github.com/cointop-sh/cointop/wiki/Installing-Go-on-Ubuntu).
## I'm getting errors installing the snap in Windows WSL. ## I'm getting errors installing the snap in Windows WSL.
@ -228,8 +228,8 @@ draft: false
Here's how to build the executable and run it: Here's how to build the executable and run it:
```powershell ```powershell
> md C:\Users\Josem\go\src\github.com\miguelmota -ea 0 > md C:\Users\Josem\go\src\github.com\cointop-sh -ea 0
> git clone https://github.com/miguelmota/cointop.git > git clone https://github.com/cointop-sh/cointop.git
> go build -o cointop.exe main.go > go build -o cointop.exe main.go
> cointop.exe > cointop.exe
``` ```
@ -373,7 +373,7 @@ draft: false
## I can only view the first page, why isn't the pagination is working? ## I can only view the first page, why isn't the pagination is working?
Sometimes the coin APIs will make updates and break things. If you see this problem please [submit an issue](https://github.com/miguelmota/cointop/issues/new). Sometimes the coin APIs will make updates and break things. If you see this problem please [submit an issue](https://github.com/cointop-sh/cointop/issues/new).
## How can run cointop with just the table? ## How can run cointop with just the table?
@ -484,5 +484,5 @@ draft: false
The version number is read from the git tag during the build process but this requires the `GO111MODULE` environment variable to be set in order for Go to read the build information: The version number is read from the git tag during the build process but this requires the `GO111MODULE` environment variable to be set in order for Go to read the build information:
```bash ```bash
GO111MODULE=on go get github.com/miguelmota/cointop GO111MODULE=on go get github.com/cointop-sh/cointop
``` ```

@ -12,7 +12,7 @@ There are multiple ways you can install cointop depending on the platform you're
Make sure to have [go](https://golang.org/) (1.12+) installed, then do: Make sure to have [go](https://golang.org/) (1.12+) installed, then do:
```bash ```bash
go get github.com/miguelmota/cointop go get github.com/cointop-sh/cointop
``` ```
The cointop executable will be under `~/go/bin/cointop` so make sure `$GOPATH/bin` is added to the `$PATH` variable if not already. The cointop executable will be under `~/go/bin/cointop` so make sure `$GOPATH/bin` is added to the `$PATH` variable if not already.
@ -25,14 +25,14 @@ cointop
## Binary (all platforms) ## Binary (all platforms)
You can download the binary from the [releases](https://github.com/miguelmota/cointop/releases) page. You can download the binary from the [releases](https://github.com/cointop-sh/cointop/releases) page.
```bash ```bash
curl -o- https://raw.githubusercontent.com/miguelmota/cointop/master/install.sh | bash curl -o- https://raw.githubusercontent.com/cointop-sh/cointop/master/install.sh | bash
``` ```
```bash ```bash
wget -qO- https://raw.githubusercontent.com/miguelmota/cointop/master/install.sh | bash wget -qO- https://raw.githubusercontent.com/cointop-sh/cointop/master/install.sh | bash
``` ```
## Homebrew (macOS) ## Homebrew (macOS)
@ -143,11 +143,11 @@ nix-env -iA nixpkgs.cointop
## AppImage (Linux) ## AppImage (Linux)
You can download the AppImage from the [releases](https://github.com/miguelmota/cointop/releases) page. You can download the AppImage from the [releases](https://github.com/cointop-sh/cointop/releases) page.
```bash ```bash
VERSION=$(curl --silent "https://api.github.com/repos/miguelmota/cointop/releases/latest" | grep -Po --color=never '"tag_name": ".\K.*?(?=")') VERSION=$(curl --silent "https://api.github.com/repos/cointop-sh/cointop/releases/latest" | grep -Po --color=never '"tag_name": ".\K.*?(?=")')
URL="https://github.com/miguelmota/cointop/releases/download/v$VERSION/cointop-v$VERSION.glibc2.32-x86_64.AppImage" URL="https://github.com/cointop-sh/cointop/releases/download/v$VERSION/cointop-v$VERSION.glibc2.32-x86_64.AppImage"
wget $URL wget $URL
``` ```
@ -176,10 +176,10 @@ sudo pkg install cointop
Install [Go](https://golang.org/doc/install) and [git](https://git-scm.com/download/win), then: Install [Go](https://golang.org/doc/install) and [git](https://git-scm.com/download/win), then:
```powershell ```powershell
go get -u github.com/miguelmota/cointop go get -u github.com/cointop-sh/cointop
``` ```
You'll need additional font support for Windows. Please see the [wiki](https://github.com/miguelmota/cointop/wiki/Windows-Command-Prompt-and-WSL-Font-Support) for instructions. You'll need additional font support for Windows. Please see the [wiki](https://github.com/cointop-sh/cointop/wiki/Windows-Command-Prompt-and-WSL-Font-Support) for instructions.
## Docker ## Docker
@ -197,4 +197,4 @@ docker run -v ~/.cache/cointop:/root/.config/cointop -it cointop/cointop
## Binaries ## Binaries
You can find pre-built binaries on the [releases](https://github.com/miguelmota/cointop/releases) page. You can find pre-built binaries on the [releases](https://github.com/cointop-sh/cointop/releases) page.

@ -10,7 +10,7 @@ draft: false
To update make sure to use the `-u` flag if installed via Go. To update make sure to use the `-u` flag if installed via Go.
```bash ```bash
go get -u github.com/miguelmota/cointop go get -u github.com/cointop-sh/cointop
``` ```
## Homebrew (macOS) ## Homebrew (macOS)

@ -1,4 +1,4 @@
module github.com/miguelmota/cointop module github.com/cointop-sh/cointop
go 1.17 go 1.17
@ -6,8 +6,8 @@ require (
github.com/BurntSushi/toml v0.4.1 github.com/BurntSushi/toml v0.4.1
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
github.com/antonmedv/expr v1.9.0 github.com/antonmedv/expr v1.9.0
github.com/creack/pty v1.1.15 github.com/creack/pty v1.1.16
github.com/fatih/color v1.12.0 github.com/fatih/color v1.13.0
github.com/gen2brain/beeep v0.0.0-20210529141713-5586760f0cc1 github.com/gen2brain/beeep v0.0.0-20210529141713-5586760f0cc1
github.com/gliderlabs/ssh v0.3.3 github.com/gliderlabs/ssh v0.3.3
github.com/maruel/panicparse v1.6.1 github.com/maruel/panicparse v1.6.1
@ -21,7 +21,7 @@ require (
github.com/sirupsen/logrus v1.8.1 github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.2.1 github.com/spf13/cobra v1.2.1
github.com/tomnomnom/xtermcolor v0.0.0-20160428124646-b78803f00a7e github.com/tomnomnom/xtermcolor v0.0.0-20160428124646-b78803f00a7e
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
golang.org/x/text v0.3.7 golang.org/x/text v0.3.7
) )
@ -33,12 +33,12 @@ require (
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect
github.com/gopherjs/gopherwasm v1.1.0 // indirect github.com/gopherjs/gopherwasm v1.1.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect github.com/mattn/go-colorable v0.1.9 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect github.com/mattn/go-isatty v0.0.14 // indirect
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/rivo/uniseg v0.2.0 // indirect github.com/rivo/uniseg v0.2.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/pflag v1.0.5 // indirect
github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af // indirect github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af // indirect
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 // indirect golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
) )

@ -67,8 +67,8 @@ github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnht
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/creack/pty v1.1.15 h1:cKRCLMj3Ddm54bKSpemfQ8AtYFBhAI2MPmdys22fBdc= github.com/creack/pty v1.1.16 h1:vfetlOf3A+9YKggibynnX9mnFjuSVvkRj+IWpcTSLEQ=
github.com/creack/pty v1.1.15/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/creack/pty v1.1.16/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
@ -81,8 +81,8 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.m
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.12.0 h1:mRhaKNwANqRgUBGKmnI5ZxEk7QXmjQeCcuYFMX2bfcc= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg= github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
github.com/gdamore/tcell v1.3.0/go.mod h1:Hjvr+Ofd+gLglo7RYKxxnzCBmev3BzsS67MebKS4zMM= github.com/gdamore/tcell v1.3.0/go.mod h1:Hjvr+Ofd+gLglo7RYKxxnzCBmev3BzsS67MebKS4zMM=
@ -210,11 +210,12 @@ github.com/maruel/panicparse v1.6.1/go.mod h1:uoxI4w9gJL6XahaYPMq/z9uadrdr1SyHuQ
github.com/maruel/panicparse/v2 v2.1.1/go.mod h1:AeTWdCE4lcq8OKsLb6cHSj1RWHVSnV9HBCk7sKLF4Jg= github.com/maruel/panicparse/v2 v2.1.1/go.mod h1:AeTWdCE4lcq8OKsLb6cHSj1RWHVSnV9HBCk7sKLF4Jg=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= github.com/mattn/go-colorable v0.1.9 h1:sqDoxXbdeALODt0DAeJCVp38ps9ZogZEAXjus69YV3U=
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/mattn/go-runewidth v0.0.8/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.8/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
@ -320,8 +321,8 @@ golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@ -464,8 +465,9 @@ golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 h1:RqytpXGR1iVNX7psjB3ff8y7sNFinVFvkx1c8SjBkio=
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=$(curl --silent "https://api.github.com/repos/miguelmota/cointop/releases/latest" | grep -Po --color=never '"tag_name": ".\K.*?(?=")') VERSION=$(curl --silent "https://api.github.com/repos/cointop-sh/cointop/releases/latest" | grep -Po --color=never '"tag_name": ".\K.*?(?=")')
OSNAME="linux" OSNAME="linux"
if [[ $(uname) == 'Darwin' ]]; then if [[ $(uname) == 'Darwin' ]]; then
@ -9,7 +9,7 @@ fi
( (
cd /tmp cd /tmp
wget https://github.com/miguelmota/cointop/releases/download/v${VERSION}/cointop_${VERSION}_${OSNAME}_amd64.tar.gz wget https://github.com/cointop-sh/cointop/releases/download/v${VERSION}/cointop_${VERSION}_${OSNAME}_amd64.tar.gz
tar -xvzf cointop_${VERSION}_${OSNAME}_amd64.tar.gz cointop tar -xvzf cointop_${VERSION}_${OSNAME}_amd64.tar.gz cointop
sudo mv cointop /usr/local/bin/cointop sudo mv cointop /usr/local/bin/cointop

@ -1,7 +1,7 @@
package main package main
import ( import (
cmd "github.com/miguelmota/cointop/cmd/commands" cmd "github.com/cointop-sh/cointop/cmd/commands"
) )
func main() { func main() {

@ -1,8 +1,8 @@
package api package api
import ( import (
cg "github.com/miguelmota/cointop/pkg/api/impl/coingecko" cg "github.com/cointop-sh/cointop/pkg/api/impl/coingecko"
cmc "github.com/miguelmota/cointop/pkg/api/impl/coinmarketcap" cmc "github.com/cointop-sh/cointop/pkg/api/impl/coinmarketcap"
) )
// NewCMC new CoinMarketCap API // NewCMC new CoinMarketCap API

@ -9,10 +9,10 @@ import (
"sync" "sync"
"time" "time"
apitypes "github.com/miguelmota/cointop/pkg/api/types" apitypes "github.com/cointop-sh/cointop/pkg/api/types"
util "github.com/miguelmota/cointop/pkg/api/util" util "github.com/cointop-sh/cointop/pkg/api/util"
gecko "github.com/miguelmota/cointop/pkg/api/vendors/coingecko/v3" gecko "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3"
geckoTypes "github.com/miguelmota/cointop/pkg/api/vendors/coingecko/v3/types" geckoTypes "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3/types"
) )
// ErrPingFailed is the error for when pinging the API fails // ErrPingFailed is the error for when pinging the API fails

@ -11,8 +11,8 @@ import (
"strings" "strings"
"time" "time"
apitypes "github.com/miguelmota/cointop/pkg/api/types" apitypes "github.com/cointop-sh/cointop/pkg/api/types"
util "github.com/miguelmota/cointop/pkg/api/util" util "github.com/cointop-sh/cointop/pkg/api/util"
cmc "github.com/miguelmota/go-coinmarketcap/pro/v1" cmc "github.com/miguelmota/go-coinmarketcap/pro/v1"
cmcv2 "github.com/miguelmota/go-coinmarketcap/v2" cmcv2 "github.com/miguelmota/go-coinmarketcap/v2"
) )

@ -1,7 +1,7 @@
package api package api
import ( import (
types "github.com/miguelmota/cointop/pkg/api/types" types "github.com/cointop-sh/cointop/pkg/api/types"
) )
// Interface interface // Interface interface

@ -9,8 +9,8 @@ import (
"net/url" "net/url"
"strings" "strings"
"github.com/miguelmota/cointop/pkg/api/vendors/coingecko/format" "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/format"
"github.com/miguelmota/cointop/pkg/api/vendors/coingecko/v3/types" "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3/types"
) )
var baseURL = "https://api.coingecko.com/api/v3" var baseURL = "https://api.coingecko.com/api/v3"

@ -1,7 +1,7 @@
package chartplot package chartplot
import ( import (
"github.com/miguelmota/cointop/pkg/termui" "github.com/cointop-sh/cointop/pkg/termui"
) )
// ChartPlot ... // ChartPlot ...

@ -16,9 +16,9 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/cointop-sh/cointop/pkg/pathutil"
"github.com/creack/pty" "github.com/creack/pty"
"github.com/gliderlabs/ssh" "github.com/gliderlabs/ssh"
"github.com/miguelmota/cointop/pkg/pathutil"
gossh "golang.org/x/crypto/ssh" gossh "golang.org/x/crypto/ssh"
) )

@ -8,8 +8,8 @@ import (
"unicode/utf8" "unicode/utf8"
"github.com/acarl005/stripansi" "github.com/acarl005/stripansi"
"github.com/miguelmota/cointop/pkg/pad" "github.com/cointop-sh/cointop/pkg/pad"
"github.com/miguelmota/cointop/pkg/table/align" "github.com/cointop-sh/cointop/pkg/table/align"
) )
// Table table // Table table

@ -27,7 +27,7 @@ set -e
cross linux amd64 386 arm arm64 ppc64 ppc64le s390x mips mipsle mips64 mips64le cross linux amd64 386 arm arm64 ppc64 ppc64le s390x mips mipsle mips64 mips64le
cross darwin amd64 arm64 cross darwin amd64 arm64
cross freebsd amd64 386 arm arm64 cross freebsd amd64 386 arm arm64 ppc64
cross netbsd amd64 386 arm arm64 cross netbsd amd64 386 arm arm64
cross openbsd amd64 386 arm arm64 cross openbsd amd64 386 arm arm64
cross dragonfly amd64 cross dragonfly amd64

@ -0,0 +1,14 @@
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs types_freebsd.go
package pty
const (
_C_SPECNAMELEN = 0x3f
)
type fiodgnameArg struct {
Len int32
Pad_cgo_0 [4]byte
Buf *byte
}

@ -78,7 +78,7 @@ notice("Don't forget this...")
### Custom fprint functions (FprintFunc) ### Custom fprint functions (FprintFunc)
```go ```go
blue := color.New(FgBlue).FprintfFunc() blue := color.New(color.FgBlue).FprintfFunc()
blue(myWriter, "important notice: %s", stars) blue(myWriter, "important notice: %s", stars)
// Mix up with multiple attributes // Mix up with multiple attributes

@ -27,7 +27,10 @@ loop:
} }
if c1 != 0x1b { if c1 != 0x1b {
bw[0] = c1 bw[0] = c1
w.out.Write(bw[:]) _, err = w.out.Write(bw[:])
if err != nil {
break loop
}
continue continue
} }
c2, err := er.ReadByte() c2, err := er.ReadByte()

@ -1,14 +0,0 @@
language: go
sudo: false
go:
- 1.13.x
- tip
before_install:
- go get -t -v ./...
script:
- ./go.test.sh
after_success:
- bash <(curl -s https://codecov.io/bash)

@ -1,3 +1,4 @@
//go:build (darwin || freebsd || openbsd || netbsd || dragonfly) && !appengine
// +build darwin freebsd openbsd netbsd dragonfly // +build darwin freebsd openbsd netbsd dragonfly
// +build !appengine // +build !appengine

@ -1,4 +1,5 @@
// +build appengine js nacl //go:build appengine || js || nacl || wasm
// +build appengine js nacl wasm
package isatty package isatty

@ -1,3 +1,4 @@
//go:build plan9
// +build plan9 // +build plan9
package isatty package isatty

@ -1,5 +1,5 @@
// +build solaris //go:build solaris && !appengine
// +build !appengine // +build solaris,!appengine
package isatty package isatty
@ -8,10 +8,9 @@ import (
) )
// IsTerminal returns true if the given file descriptor is a terminal. // IsTerminal returns true if the given file descriptor is a terminal.
// see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c // see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c
func IsTerminal(fd uintptr) bool { func IsTerminal(fd uintptr) bool {
var termio unix.Termio _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA)
err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
return err == nil return err == nil
} }

@ -1,4 +1,5 @@
// +build linux aix //go:build (linux || aix || zos) && !appengine
// +build linux aix zos
// +build !appengine // +build !appengine
package isatty package isatty

@ -1,5 +1,5 @@
// +build windows //go:build windows && !appengine
// +build !appengine // +build windows,!appengine
package isatty package isatty
@ -76,7 +76,7 @@ func isCygwinPipeName(name string) bool {
} }
// getFileNameByHandle use the undocomented ntdll NtQueryObject to get file full name from file handler // getFileNameByHandle use the undocomented ntdll NtQueryObject to get file full name from file handler
// since GetFileInformationByHandleEx is not avilable under windows Vista and still some old fashion // since GetFileInformationByHandleEx is not available under windows Vista and still some old fashion
// guys are using Windows XP, this is a workaround for those guys, it will also work on system from // guys are using Windows XP, this is a workaround for those guys, it will also work on system from
// Windows vista to 10 // Windows vista to 10
// see https://stackoverflow.com/a/18792477 for details // see https://stackoverflow.com/a/18792477 for details

@ -1,8 +0,0 @@
{
"extends": [
"config:base"
],
"postUpdateOptions": [
"gomodTidy"
]
}

@ -15,7 +15,7 @@
// used with a fixed key in order to generate one-time keys from an nonce. // used with a fixed key in order to generate one-time keys from an nonce.
// However, in this package AES isn't used and the one-time key is specified // However, in this package AES isn't used and the one-time key is specified
// directly. // directly.
package poly1305 // import "golang.org/x/crypto/poly1305" package poly1305
import "crypto/subtle" import "crypto/subtle"

@ -18,7 +18,7 @@
// value. These limbs are, for the most part, zero extended and // value. These limbs are, for the most part, zero extended and
// placed into 64-bit vector register elements. Each vector // placed into 64-bit vector register elements. Each vector
// register is 128-bits wide and so holds 2 of these elements. // register is 128-bits wide and so holds 2 of these elements.
// Using 26-bit limbs allows us plenty of headroom to accomodate // Using 26-bit limbs allows us plenty of headroom to accommodate
// accumulations before and after multiplication without // accumulations before and after multiplication without
// overflowing either 32-bits (before multiplication) or 64-bits // overflowing either 32-bits (before multiplication) or 64-bits
// (after multiplication). // (after multiplication).

@ -18,7 +18,7 @@ import (
"io/ioutil" "io/ioutil"
"golang.org/x/crypto/chacha20" "golang.org/x/crypto/chacha20"
"golang.org/x/crypto/poly1305" "golang.org/x/crypto/internal/poly1305"
) )
const ( const (

@ -1773,6 +1773,8 @@ const (
NFPROTO_NUMPROTO = 0xd NFPROTO_NUMPROTO = 0xd
) )
const SO_ORIGINAL_DST = 0x50
type Nfgenmsg struct { type Nfgenmsg struct {
Nfgen_family uint8 Nfgen_family uint8
Version uint8 Version uint8

@ -680,7 +680,7 @@ const (
WTD_CHOICE_CERT = 5 WTD_CHOICE_CERT = 5
WTD_STATEACTION_IGNORE = 0x00000000 WTD_STATEACTION_IGNORE = 0x00000000
WTD_STATEACTION_VERIFY = 0x00000010 WTD_STATEACTION_VERIFY = 0x00000001
WTD_STATEACTION_CLOSE = 0x00000002 WTD_STATEACTION_CLOSE = 0x00000002
WTD_STATEACTION_AUTO_CACHE = 0x00000003 WTD_STATEACTION_AUTO_CACHE = 0x00000003
WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004 WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004

14
vendor/modules.txt vendored

@ -23,10 +23,10 @@ github.com/antonmedv/expr/optimizer
github.com/antonmedv/expr/parser github.com/antonmedv/expr/parser
github.com/antonmedv/expr/parser/lexer github.com/antonmedv/expr/parser/lexer
github.com/antonmedv/expr/vm github.com/antonmedv/expr/vm
# github.com/creack/pty v1.1.15 # github.com/creack/pty v1.1.16
## explicit; go 1.13 ## explicit; go 1.13
github.com/creack/pty github.com/creack/pty
# github.com/fatih/color v1.12.0 # github.com/fatih/color v1.13.0
## explicit; go 1.13 ## explicit; go 1.13
github.com/fatih/color github.com/fatih/color
# github.com/gen2brain/beeep v0.0.0-20210529141713-5586760f0cc1 # github.com/gen2brain/beeep v0.0.0-20210529141713-5586760f0cc1
@ -53,10 +53,10 @@ github.com/inconshreveable/mousetrap
# github.com/maruel/panicparse v1.6.1 # github.com/maruel/panicparse v1.6.1
## explicit; go 1.11 ## explicit; go 1.11
github.com/maruel/panicparse/stack github.com/maruel/panicparse/stack
# github.com/mattn/go-colorable v0.1.8 # github.com/mattn/go-colorable v0.1.9
## explicit; go 1.13 ## explicit; go 1.13
github.com/mattn/go-colorable github.com/mattn/go-colorable
# github.com/mattn/go-isatty v0.0.12 # github.com/mattn/go-isatty v0.0.14
## explicit; go 1.12 ## explicit; go 1.12
github.com/mattn/go-isatty github.com/mattn/go-isatty
# github.com/mattn/go-runewidth v0.0.13 # github.com/mattn/go-runewidth v0.0.13
@ -103,7 +103,7 @@ github.com/tadvi/systray
# github.com/tomnomnom/xtermcolor v0.0.0-20160428124646-b78803f00a7e # github.com/tomnomnom/xtermcolor v0.0.0-20160428124646-b78803f00a7e
## explicit ## explicit
github.com/tomnomnom/xtermcolor github.com/tomnomnom/xtermcolor
# golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 # golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
## explicit; go 1.17 ## explicit; go 1.17
golang.org/x/crypto/blowfish golang.org/x/crypto/blowfish
golang.org/x/crypto/chacha20 golang.org/x/crypto/chacha20
@ -111,15 +111,15 @@ golang.org/x/crypto/curve25519
golang.org/x/crypto/curve25519/internal/field golang.org/x/crypto/curve25519/internal/field
golang.org/x/crypto/ed25519 golang.org/x/crypto/ed25519
golang.org/x/crypto/ed25519/internal/edwards25519 golang.org/x/crypto/ed25519/internal/edwards25519
golang.org/x/crypto/internal/poly1305
golang.org/x/crypto/internal/subtle golang.org/x/crypto/internal/subtle
golang.org/x/crypto/poly1305
golang.org/x/crypto/ssh golang.org/x/crypto/ssh
golang.org/x/crypto/ssh/internal/bcrypt_pbkdf golang.org/x/crypto/ssh/internal/bcrypt_pbkdf
# golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 # golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
## explicit; go 1.11 ## explicit; go 1.11
golang.org/x/net/html golang.org/x/net/html
golang.org/x/net/html/atom golang.org/x/net/html/atom
# golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 # golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
## explicit; go 1.17 ## explicit; go 1.17
golang.org/x/sys/cpu golang.org/x/sys/cpu
golang.org/x/sys/internal/unsafeheader golang.org/x/sys/internal/unsafeheader

Loading…
Cancel
Save