diff --git a/Dockerfile b/Dockerfile index 44aa528..4a40b58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,15 @@ FROM golang:alpine AS build ARG VERSION RUN wget \ --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 \ --output-document "/cointop-colors-master.tar.gz" \ "https://github.com/cointop-sh/colors/archive/master.tar.gz" \ && mkdir --parents \ - "$GOPATH/src/github.com/miguelmota/cointop" \ + "$GOPATH/src/github.com/cointop-sh/cointop" \ "/usr/local/share/cointop/colors" \ && tar \ - --directory "$GOPATH/src/github.com/miguelmota/cointop" \ + --directory "$GOPATH/src/github.com/cointop-sh/cointop" \ --extract \ --file "/cointop-$VERSION.tar.gz" \ --strip-components 1 \ @@ -22,8 +22,8 @@ RUN wget \ && rm \ "/cointop-$VERSION.tar.gz" \ /cointop-colors-master.tar.gz \ -&& cd "$GOPATH/src/github.com/miguelmota/cointop" \ -&& CGO_ENABLED=0 go install -ldflags "-s -w -X 'github.com/miguelmota/cointop/cointop.version=$VERSION'" \ +&& cd "$GOPATH/src/github.com/cointop-sh/cointop" \ +&& CGO_ENABLED=0 go install -ldflags "-s -w -X 'github.com/cointop-sh/cointop/cointop.version=$VERSION'" \ && cd "$GOPATH" \ && rm -r src/github.com \ && apk add --no-cache upx \ diff --git a/Makefile b/Makefile index 49d3cc2..05e6a5d 100644 --- a/Makefile +++ b/Makefile @@ -30,18 +30,18 @@ debug: .PHONY: 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 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 - 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 - env GOARCH=amd64 go build -ldflags "-s -w -X github.com/miguelmota/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=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/cointop-sh/cointop/cointop.version=$(VERSION)" -o bin/cointop32 && upx bin/cointop32 install: build sudo mv bin/cointop /usr/local/bin @@ -96,7 +96,7 @@ snap-clean: snap-stage: # 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: sudo apt install snapd @@ -176,7 +176,7 @@ rpm-dirs: chmod -R a+rwx ~/rpmbuild 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: sudo dnf install -y copr-cli @@ -210,7 +210,7 @@ brew-test: brew test cointop.rb 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 cointop/cointop diff --git a/README.md b/README.md index d184cf0..720b16f 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,14 @@ > Coin tracking for hackers -[![License](http://img.shields.io/badge/license-Apache-blue.svg)](https://raw.githubusercontent.com/miguelmota/cointop/master/LICENSE) -[![Build Status](https://travis-ci.org/miguelmota/cointop.svg?branch=master)](https://travis-ci.org/miguelmota/cointop) -[![Go Report Card](https://goreportcard.com/badge/github.com/miguelmota/cointop?)](https://goreportcard.com/report/github.com/miguelmota/cointop) -[![GoDoc](https://godoc.org/github.com/miguelmota/cointop?status.svg)](https://godoc.org/github.com/miguelmota/cointop) +[![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/cointop-sh/cointop.svg?branch=master)](https://travis-ci.org/cointop-sh/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/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) [![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)). @@ -110,7 +110,7 @@ See [docs.cointop.sh/faq](https://docs.cointop.sh/faq) 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 @@ -136,3 +136,5 @@ Thank you for tips! 🙏 ## License Released under the [Apache 2.0](./LICENSE) license. + +© [Miguel Mota](https://github.com/miguelmota) diff --git a/cmd/cointop/cointop.go b/cmd/cointop/cointop.go index bca7b13..e1a333c 100644 --- a/cmd/cointop/cointop.go +++ b/cmd/cointop/cointop.go @@ -1,7 +1,7 @@ package main import ( - cmd "github.com/miguelmota/cointop/cmd/commands" + cmd "github.com/cointop-sh/cointop/cmd/commands" ) func main() { diff --git a/cmd/commands/clean.go b/cmd/commands/clean.go index 3c7affd..1ee4588 100644 --- a/cmd/commands/clean.go +++ b/cmd/commands/clean.go @@ -1,8 +1,8 @@ package cmd import ( - "github.com/miguelmota/cointop/cointop" - "github.com/miguelmota/cointop/pkg/filecache" + "github.com/cointop-sh/cointop/cointop" + "github.com/cointop-sh/cointop/pkg/filecache" "github.com/spf13/cobra" ) diff --git a/cmd/commands/dominance.go b/cmd/commands/dominance.go index 108c068..00026dc 100644 --- a/cmd/commands/dominance.go +++ b/cmd/commands/dominance.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/miguelmota/cointop/cointop" + "github.com/cointop-sh/cointop/cointop" "github.com/spf13/cobra" ) diff --git a/cmd/commands/holdings.go b/cmd/commands/holdings.go index 47b8267..91d2967 100644 --- a/cmd/commands/holdings.go +++ b/cmd/commands/holdings.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "github.com/miguelmota/cointop/cointop" + "github.com/cointop-sh/cointop/cointop" "github.com/spf13/cobra" ) diff --git a/cmd/commands/price.go b/cmd/commands/price.go index 4391df4..54fc376 100644 --- a/cmd/commands/price.go +++ b/cmd/commands/price.go @@ -3,7 +3,7 @@ package cmd import ( "errors" - "github.com/miguelmota/cointop/cointop" + "github.com/cointop-sh/cointop/cointop" "github.com/spf13/cobra" ) diff --git a/cmd/commands/reset.go b/cmd/commands/reset.go index 5b5a3f1..32fa32b 100644 --- a/cmd/commands/reset.go +++ b/cmd/commands/reset.go @@ -1,8 +1,8 @@ package cmd import ( - "github.com/miguelmota/cointop/cointop" - "github.com/miguelmota/cointop/pkg/filecache" + "github.com/cointop-sh/cointop/cointop" + "github.com/cointop-sh/cointop/pkg/filecache" "github.com/spf13/cobra" ) diff --git a/cmd/commands/root.go b/cmd/commands/root.go index 160c4be..055c4c2 100644 --- a/cmd/commands/root.go +++ b/cmd/commands/root.go @@ -5,7 +5,7 @@ import ( "os" "strconv" - "github.com/miguelmota/cointop/cointop" + "github.com/cointop-sh/cointop/cointop" "github.com/spf13/cobra" ) diff --git a/cmd/commands/server.go b/cmd/commands/server.go index 93d59bd..4fab961 100644 --- a/cmd/commands/server.go +++ b/cmd/commands/server.go @@ -8,7 +8,7 @@ import ( "strings" "time" - cssh "github.com/miguelmota/cointop/pkg/ssh" + cssh "github.com/cointop-sh/cointop/pkg/ssh" "github.com/spf13/cobra" ) diff --git a/cmd/commands/test.go b/cmd/commands/test.go index 3c24af2..eb0d8bc 100644 --- a/cmd/commands/test.go +++ b/cmd/commands/test.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/miguelmota/cointop/cointop" + "github.com/cointop-sh/cointop/cointop" "github.com/spf13/cobra" ) diff --git a/cmd/commands/version.go b/cmd/commands/version.go index b57b08d..9f7fff4 100644 --- a/cmd/commands/version.go +++ b/cmd/commands/version.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/miguelmota/cointop/cointop" + "github.com/cointop-sh/cointop/cointop" "github.com/spf13/cobra" ) diff --git a/cointop/chart.go b/cointop/chart.go index eb0d4c8..c2fa3c3 100644 --- a/cointop/chart.go +++ b/cointop/chart.go @@ -7,10 +7,10 @@ import ( "sync" "time" - "github.com/miguelmota/cointop/pkg/chartplot" - "github.com/miguelmota/cointop/pkg/timedata" - "github.com/miguelmota/cointop/pkg/timeutil" - "github.com/miguelmota/cointop/pkg/ui" + "github.com/cointop-sh/cointop/pkg/chartplot" + "github.com/cointop-sh/cointop/pkg/timedata" + "github.com/cointop-sh/cointop/pkg/timeutil" + "github.com/cointop-sh/cointop/pkg/ui" log "github.com/sirupsen/logrus" ) diff --git a/cointop/coins_table.go b/cointop/coins_table.go index b06c49e..113f50b 100644 --- a/cointop/coins_table.go +++ b/cointop/coins_table.go @@ -5,8 +5,8 @@ import ( "strconv" "time" - "github.com/miguelmota/cointop/pkg/humanize" - "github.com/miguelmota/cointop/pkg/table" + "github.com/cointop-sh/cointop/pkg/humanize" + "github.com/cointop-sh/cointop/pkg/table" ) // SupportedCoinTableHeaders are all the supported coin table header columns diff --git a/cointop/cointop.go b/cointop/cointop.go index d415372..0efc314 100644 --- a/cointop/cointop.go +++ b/cointop/cointop.go @@ -9,13 +9,13 @@ import ( "sync" "time" - "github.com/miguelmota/cointop/pkg/api" - "github.com/miguelmota/cointop/pkg/api/types" - "github.com/miguelmota/cointop/pkg/cache" - "github.com/miguelmota/cointop/pkg/filecache" - "github.com/miguelmota/cointop/pkg/pathutil" - "github.com/miguelmota/cointop/pkg/table" - "github.com/miguelmota/cointop/pkg/ui" + "github.com/cointop-sh/cointop/pkg/api" + "github.com/cointop-sh/cointop/pkg/api/types" + "github.com/cointop-sh/cointop/pkg/cache" + "github.com/cointop-sh/cointop/pkg/filecache" + "github.com/cointop-sh/cointop/pkg/pathutil" + "github.com/cointop-sh/cointop/pkg/table" + "github.com/cointop-sh/cointop/pkg/ui" "github.com/miguelmota/gocui" log "github.com/sirupsen/logrus" ) @@ -411,7 +411,7 @@ func NewCointop(config *Config) (*Cointop, error) { 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 for _, v := range allCoinsSlugMap { // Some APIs returns rank 0 for new coins diff --git a/cointop/config.go b/cointop/config.go index 4a2aeaa..30cf1d9 100644 --- a/cointop/config.go +++ b/cointop/config.go @@ -13,8 +13,8 @@ import ( "time" "unicode/utf8" - "github.com/miguelmota/cointop/pkg/pathutil" - "github.com/miguelmota/cointop/pkg/toml" + "github.com/cointop-sh/cointop/pkg/pathutil" + "github.com/cointop-sh/cointop/pkg/toml" log "github.com/sirupsen/logrus" ) diff --git a/cointop/conversion.go b/cointop/conversion.go index ec6c053..f1acb09 100644 --- a/cointop/conversion.go +++ b/cointop/conversion.go @@ -6,8 +6,8 @@ import ( "sort" "strings" - color "github.com/miguelmota/cointop/pkg/color" - "github.com/miguelmota/cointop/pkg/pad" + color "github.com/cointop-sh/cointop/pkg/color" + "github.com/cointop-sh/cointop/pkg/pad" log "github.com/sirupsen/logrus" ) diff --git a/cointop/dominance.go b/cointop/dominance.go index 5fdea85..a76b247 100644 --- a/cointop/dominance.go +++ b/cointop/dominance.go @@ -3,7 +3,7 @@ package cointop import ( "fmt" - "github.com/miguelmota/cointop/pkg/api" + "github.com/cointop-sh/cointop/pkg/api" ) // DominanceConfig is the config options for the dominance command diff --git a/cointop/help.go b/cointop/help.go index d405d87..fde799d 100644 --- a/cointop/help.go +++ b/cointop/help.go @@ -4,7 +4,7 @@ import ( "fmt" "sort" - "github.com/miguelmota/cointop/pkg/pad" + "github.com/cointop-sh/cointop/pkg/pad" log "github.com/sirupsen/logrus" ) diff --git a/cointop/list.go b/cointop/list.go index 796e0e0..45076f4 100644 --- a/cointop/list.go +++ b/cointop/list.go @@ -4,7 +4,7 @@ import ( "sync" "time" - types "github.com/miguelmota/cointop/pkg/api/types" + types "github.com/cointop-sh/cointop/pkg/api/types" log "github.com/sirupsen/logrus" ) @@ -69,7 +69,7 @@ func (ct *Cointop) processCoins(coins []types.Coin) { for _, v := range coins { 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 // or coins with low market cap data so we need to put them // at the end of the list diff --git a/cointop/marketbar.go b/cointop/marketbar.go index 75dc841..6d9b21a 100644 --- a/cointop/marketbar.go +++ b/cointop/marketbar.go @@ -6,11 +6,11 @@ import ( "strings" "time" - types "github.com/miguelmota/cointop/pkg/api/types" - "github.com/miguelmota/cointop/pkg/color" - "github.com/miguelmota/cointop/pkg/humanize" - "github.com/miguelmota/cointop/pkg/pad" - "github.com/miguelmota/cointop/pkg/ui" + types "github.com/cointop-sh/cointop/pkg/api/types" + "github.com/cointop-sh/cointop/pkg/color" + "github.com/cointop-sh/cointop/pkg/humanize" + "github.com/cointop-sh/cointop/pkg/pad" + "github.com/cointop-sh/cointop/pkg/ui" log "github.com/sirupsen/logrus" ) diff --git a/cointop/menu.go b/cointop/menu.go index 70ae08c..4da3640 100644 --- a/cointop/menu.go +++ b/cointop/menu.go @@ -1,7 +1,7 @@ package cointop import ( - "github.com/miguelmota/cointop/pkg/ui" + "github.com/cointop-sh/cointop/pkg/ui" log "github.com/sirupsen/logrus" ) diff --git a/cointop/portfolio.go b/cointop/portfolio.go index 9de6b1f..eb7293d 100644 --- a/cointop/portfolio.go +++ b/cointop/portfolio.go @@ -12,11 +12,11 @@ import ( "time" "unicode/utf8" - "github.com/miguelmota/cointop/pkg/asciitable" - "github.com/miguelmota/cointop/pkg/eval" - "github.com/miguelmota/cointop/pkg/humanize" - "github.com/miguelmota/cointop/pkg/pad" - "github.com/miguelmota/cointop/pkg/table" + "github.com/cointop-sh/cointop/pkg/asciitable" + "github.com/cointop-sh/cointop/pkg/eval" + "github.com/cointop-sh/cointop/pkg/humanize" + "github.com/cointop-sh/cointop/pkg/pad" + "github.com/cointop-sh/cointop/pkg/table" log "github.com/sirupsen/logrus" ) diff --git a/cointop/price.go b/cointop/price.go index 5a6befc..203afdc 100644 --- a/cointop/price.go +++ b/cointop/price.go @@ -5,8 +5,8 @@ import ( "math" "strings" - "github.com/miguelmota/cointop/pkg/api" - "github.com/miguelmota/cointop/pkg/humanize" + "github.com/cointop-sh/cointop/pkg/api" + "github.com/cointop-sh/cointop/pkg/humanize" ) // PriceConfig is the config options for the coin price method diff --git a/cointop/price_alerts.go b/cointop/price_alerts.go index 070ee26..d77de74 100644 --- a/cointop/price_alerts.go +++ b/cointop/price_alerts.go @@ -8,10 +8,10 @@ import ( "strings" "time" - "github.com/miguelmota/cointop/pkg/humanize" - "github.com/miguelmota/cointop/pkg/notifier" - "github.com/miguelmota/cointop/pkg/pad" - "github.com/miguelmota/cointop/pkg/table" + "github.com/cointop-sh/cointop/pkg/humanize" + "github.com/cointop-sh/cointop/pkg/notifier" + "github.com/cointop-sh/cointop/pkg/pad" + "github.com/cointop-sh/cointop/pkg/table" log "github.com/sirupsen/logrus" ) diff --git a/cointop/search.go b/cointop/search.go index e54f598..7e95ff3 100644 --- a/cointop/search.go +++ b/cointop/search.go @@ -4,8 +4,8 @@ import ( "regexp" "strings" - "github.com/miguelmota/cointop/pkg/levenshtein" - "github.com/miguelmota/cointop/pkg/ui" + "github.com/cointop-sh/cointop/pkg/levenshtein" + "github.com/cointop-sh/cointop/pkg/ui" log "github.com/sirupsen/logrus" ) diff --git a/cointop/statusbar.go b/cointop/statusbar.go index 72746e7..65fcaa4 100644 --- a/cointop/statusbar.go +++ b/cointop/statusbar.go @@ -4,9 +4,9 @@ import ( "fmt" "unicode/utf8" - "github.com/miguelmota/cointop/pkg/open" - "github.com/miguelmota/cointop/pkg/pad" - "github.com/miguelmota/cointop/pkg/ui" + "github.com/cointop-sh/cointop/pkg/open" + "github.com/cointop-sh/cointop/pkg/pad" + "github.com/cointop-sh/cointop/pkg/ui" log "github.com/sirupsen/logrus" ) diff --git a/cointop/table.go b/cointop/table.go index 48da939..798aa7a 100644 --- a/cointop/table.go +++ b/cointop/table.go @@ -5,7 +5,7 @@ import ( "net/url" "strings" - "github.com/miguelmota/cointop/pkg/ui" + "github.com/cointop-sh/cointop/pkg/ui" log "github.com/sirupsen/logrus" ) diff --git a/cointop/table_header.go b/cointop/table_header.go index 6e4053a..d179942 100644 --- a/cointop/table_header.go +++ b/cointop/table_header.go @@ -6,8 +6,8 @@ import ( "strings" "unicode/utf8" - "github.com/miguelmota/cointop/pkg/pad" - "github.com/miguelmota/cointop/pkg/ui" + "github.com/cointop-sh/cointop/pkg/pad" + "github.com/cointop-sh/cointop/pkg/ui" log "github.com/sirupsen/logrus" ) diff --git a/cointop/util.go b/cointop/util.go index 7efbb8c..1028a7b 100644 --- a/cointop/util.go +++ b/cointop/util.go @@ -8,7 +8,7 @@ import ( "strings" "sync" - "github.com/miguelmota/cointop/pkg/open" + "github.com/cointop-sh/cointop/pkg/open" log "github.com/sirupsen/logrus" ) diff --git a/docs/content/_index.md b/docs/content/_index.md index 6b96ed4..d312379 100644 --- a/docs/content/_index.md +++ b/docs/content/_index.md @@ -3,7 +3,7 @@ title: "Intro" date: 2020-01-01T00:00:00-00:00 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)). diff --git a/docs/content/changelog.md b/docs/content/changelog.md index c789f43..27fa3e8 100644 --- a/docs/content/changelog.md +++ b/docs/content/changelog.md @@ -5,6 +5,6 @@ draft: false --- # 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. diff --git a/docs/content/contributing.md b/docs/content/contributing.md index 9f98242..dfcf77e 100644 --- a/docs/content/contributing.md +++ b/docs/content/contributing.md @@ -9,11 +9,11 @@ Pull requests are welcome! 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 -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: diff --git a/docs/content/faq.md b/docs/content/faq.md index dc4ee5f..00fe0f2 100644 --- a/docs/content/faq.md +++ b/docs/content/faq.md @@ -89,7 +89,7 @@ draft: false ## 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? @@ -118,7 +118,7 @@ draft: false ## 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. @@ -199,11 +199,11 @@ draft: false 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? - 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. @@ -228,8 +228,8 @@ draft: false Here's how to build the executable and run it: ```powershell - > md C:\Users\Josem\go\src\github.com\miguelmota -ea 0 - > git clone https://github.com/miguelmota/cointop.git + > md C:\Users\Josem\go\src\github.com\cointop-sh -ea 0 + > git clone https://github.com/cointop-sh/cointop.git > go build -o cointop.exe main.go > cointop.exe ``` @@ -373,7 +373,7 @@ draft: false ## 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? @@ -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: ```bash - GO111MODULE=on go get github.com/miguelmota/cointop + GO111MODULE=on go get github.com/cointop-sh/cointop ``` diff --git a/docs/content/install.md b/docs/content/install.md index bb6845e..0d4e269 100644 --- a/docs/content/install.md +++ b/docs/content/install.md @@ -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: ```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. @@ -25,14 +25,14 @@ cointop ## 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 -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 -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) @@ -143,11 +143,11 @@ nix-env -iA nixpkgs.cointop ## 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 -VERSION=$(curl --silent "https://api.github.com/repos/miguelmota/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" +VERSION=$(curl --silent "https://api.github.com/repos/cointop-sh/cointop/releases/latest" | grep -Po --color=never '"tag_name": ".\K.*?(?=")') +URL="https://github.com/cointop-sh/cointop/releases/download/v$VERSION/cointop-v$VERSION.glibc2.32-x86_64.AppImage" 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: ```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 @@ -197,4 +197,4 @@ docker run -v ~/.cache/cointop:/root/.config/cointop -it cointop/cointop ## 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. diff --git a/docs/content/update.md b/docs/content/update.md index 1895bad..7e524f1 100644 --- a/docs/content/update.md +++ b/docs/content/update.md @@ -10,7 +10,7 @@ draft: false To update make sure to use the `-u` flag if installed via Go. ```bash -go get -u github.com/miguelmota/cointop +go get -u github.com/cointop-sh/cointop ``` ## Homebrew (macOS) diff --git a/go.mod b/go.mod index cab6ae3..82e2586 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/miguelmota/cointop +module github.com/cointop-sh/cointop go 1.17 @@ -6,8 +6,8 @@ require ( github.com/BurntSushi/toml v0.4.1 github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d github.com/antonmedv/expr v1.9.0 - github.com/creack/pty v1.1.15 - github.com/fatih/color v1.12.0 + github.com/creack/pty v1.1.16 + github.com/fatih/color v1.13.0 github.com/gen2brain/beeep v0.0.0-20210529141713-5586760f0cc1 github.com/gliderlabs/ssh v0.3.3 github.com/maruel/panicparse v1.6.1 @@ -21,7 +21,7 @@ require ( github.com/sirupsen/logrus v1.8.1 github.com/spf13/cobra v1.2.1 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 ) @@ -33,12 +33,12 @@ require ( github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect github.com/gopherjs/gopherwasm v1.1.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect - github.com/mattn/go-colorable v0.1.8 // indirect - github.com/mattn/go-isatty v0.0.12 // indirect + github.com/mattn/go-colorable v0.1.9 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af // 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 ) diff --git a/go.sum b/go.sum index 095a94d..681329c 100644 --- a/go.sum +++ b/go.sum @@ -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-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/creack/pty v1.1.15 h1:cKRCLMj3Ddm54bKSpemfQ8AtYFBhAI2MPmdys22fBdc= -github.com/creack/pty v1.1.15/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= +github.com/creack/pty v1.1.16 h1:vfetlOf3A+9YKggibynnX9mnFjuSVvkRj+IWpcTSLEQ= +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 v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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/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.12.0 h1:mRhaKNwANqRgUBGKmnI5ZxEk7QXmjQeCcuYFMX2bfcc= -github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= +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/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg= 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/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.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= -github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.9 h1:sqDoxXbdeALODt0DAeJCVp38ps9ZogZEAXjus69YV3U= +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.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= 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.7/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-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-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ= -golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg= +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-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 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-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-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-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/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/install.sh b/install.sh index 041e807..7dab2eb 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/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" if [[ $(uname) == 'Darwin' ]]; then @@ -9,7 +9,7 @@ fi ( 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 sudo mv cointop /usr/local/bin/cointop diff --git a/main.go b/main.go index bca7b13..e1a333c 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - cmd "github.com/miguelmota/cointop/cmd/commands" + cmd "github.com/cointop-sh/cointop/cmd/commands" ) func main() { diff --git a/pkg/api/api.go b/pkg/api/api.go index a561212..29cd450 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -1,8 +1,8 @@ package api import ( - cg "github.com/miguelmota/cointop/pkg/api/impl/coingecko" - cmc "github.com/miguelmota/cointop/pkg/api/impl/coinmarketcap" + cg "github.com/cointop-sh/cointop/pkg/api/impl/coingecko" + cmc "github.com/cointop-sh/cointop/pkg/api/impl/coinmarketcap" ) // NewCMC new CoinMarketCap API diff --git a/pkg/api/impl/coingecko/coingecko.go b/pkg/api/impl/coingecko/coingecko.go index 5ffbd16..bd882fc 100644 --- a/pkg/api/impl/coingecko/coingecko.go +++ b/pkg/api/impl/coingecko/coingecko.go @@ -9,10 +9,10 @@ import ( "sync" "time" - apitypes "github.com/miguelmota/cointop/pkg/api/types" - util "github.com/miguelmota/cointop/pkg/api/util" - gecko "github.com/miguelmota/cointop/pkg/api/vendors/coingecko/v3" - geckoTypes "github.com/miguelmota/cointop/pkg/api/vendors/coingecko/v3/types" + apitypes "github.com/cointop-sh/cointop/pkg/api/types" + util "github.com/cointop-sh/cointop/pkg/api/util" + gecko "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3" + geckoTypes "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3/types" ) // ErrPingFailed is the error for when pinging the API fails diff --git a/pkg/api/impl/coinmarketcap/coinmarketcap.go b/pkg/api/impl/coinmarketcap/coinmarketcap.go index 9d03230..c8ffe5b 100644 --- a/pkg/api/impl/coinmarketcap/coinmarketcap.go +++ b/pkg/api/impl/coinmarketcap/coinmarketcap.go @@ -11,8 +11,8 @@ import ( "strings" "time" - apitypes "github.com/miguelmota/cointop/pkg/api/types" - util "github.com/miguelmota/cointop/pkg/api/util" + apitypes "github.com/cointop-sh/cointop/pkg/api/types" + util "github.com/cointop-sh/cointop/pkg/api/util" cmc "github.com/miguelmota/go-coinmarketcap/pro/v1" cmcv2 "github.com/miguelmota/go-coinmarketcap/v2" ) diff --git a/pkg/api/interface.go b/pkg/api/interface.go index 36e0aab..1de9b12 100644 --- a/pkg/api/interface.go +++ b/pkg/api/interface.go @@ -1,7 +1,7 @@ package api import ( - types "github.com/miguelmota/cointop/pkg/api/types" + types "github.com/cointop-sh/cointop/pkg/api/types" ) // Interface interface diff --git a/pkg/api/vendors/coingecko/v3/v3.go b/pkg/api/vendors/coingecko/v3/v3.go index 099ebc6..7cc3155 100644 --- a/pkg/api/vendors/coingecko/v3/v3.go +++ b/pkg/api/vendors/coingecko/v3/v3.go @@ -9,8 +9,8 @@ import ( "net/url" "strings" - "github.com/miguelmota/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/format" + "github.com/cointop-sh/cointop/pkg/api/vendors/coingecko/v3/types" ) var baseURL = "https://api.coingecko.com/api/v3" diff --git a/pkg/chartplot/chartplot.go b/pkg/chartplot/chartplot.go index 33b3884..aba28ce 100644 --- a/pkg/chartplot/chartplot.go +++ b/pkg/chartplot/chartplot.go @@ -1,7 +1,7 @@ package chartplot import ( - "github.com/miguelmota/cointop/pkg/termui" + "github.com/cointop-sh/cointop/pkg/termui" ) // ChartPlot ... diff --git a/pkg/ssh/server.go b/pkg/ssh/server.go index 19d42f7..a59c955 100644 --- a/pkg/ssh/server.go +++ b/pkg/ssh/server.go @@ -16,9 +16,9 @@ import ( "time" "unsafe" + "github.com/cointop-sh/cointop/pkg/pathutil" "github.com/creack/pty" "github.com/gliderlabs/ssh" - "github.com/miguelmota/cointop/pkg/pathutil" gossh "golang.org/x/crypto/ssh" ) diff --git a/pkg/table/table.go b/pkg/table/table.go index 0b42c06..fea28e0 100644 --- a/pkg/table/table.go +++ b/pkg/table/table.go @@ -8,8 +8,8 @@ import ( "unicode/utf8" "github.com/acarl005/stripansi" - "github.com/miguelmota/cointop/pkg/pad" - "github.com/miguelmota/cointop/pkg/table/align" + "github.com/cointop-sh/cointop/pkg/pad" + "github.com/cointop-sh/cointop/pkg/table/align" ) // Table table diff --git a/vendor/github.com/creack/pty/test_crosscompile.sh b/vendor/github.com/creack/pty/test_crosscompile.sh index c736c8b..bbab6b2 100644 --- a/vendor/github.com/creack/pty/test_crosscompile.sh +++ b/vendor/github.com/creack/pty/test_crosscompile.sh @@ -27,7 +27,7 @@ set -e cross linux amd64 386 arm arm64 ppc64 ppc64le s390x mips mipsle mips64 mips64le cross darwin amd64 arm64 -cross freebsd amd64 386 arm arm64 +cross freebsd amd64 386 arm arm64 ppc64 cross netbsd amd64 386 arm arm64 cross openbsd amd64 386 arm arm64 cross dragonfly amd64 diff --git a/vendor/github.com/creack/pty/ztypes_freebsd_ppc64.go b/vendor/github.com/creack/pty/ztypes_freebsd_ppc64.go new file mode 100644 index 0000000..5fa102f --- /dev/null +++ b/vendor/github.com/creack/pty/ztypes_freebsd_ppc64.go @@ -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 +} diff --git a/vendor/github.com/fatih/color/README.md b/vendor/github.com/fatih/color/README.md index 5c751f2..5152bf5 100644 --- a/vendor/github.com/fatih/color/README.md +++ b/vendor/github.com/fatih/color/README.md @@ -78,7 +78,7 @@ notice("Don't forget this...") ### Custom fprint functions (FprintFunc) ```go -blue := color.New(FgBlue).FprintfFunc() +blue := color.New(color.FgBlue).FprintfFunc() blue(myWriter, "important notice: %s", stars) // Mix up with multiple attributes diff --git a/vendor/github.com/mattn/go-colorable/noncolorable.go b/vendor/github.com/mattn/go-colorable/noncolorable.go index 95f2c6b..2dcb09a 100644 --- a/vendor/github.com/mattn/go-colorable/noncolorable.go +++ b/vendor/github.com/mattn/go-colorable/noncolorable.go @@ -27,7 +27,10 @@ loop: } if c1 != 0x1b { bw[0] = c1 - w.out.Write(bw[:]) + _, err = w.out.Write(bw[:]) + if err != nil { + break loop + } continue } c2, err := er.ReadByte() diff --git a/vendor/github.com/mattn/go-isatty/.travis.yml b/vendor/github.com/mattn/go-isatty/.travis.yml deleted file mode 100644 index 604314d..0000000 --- a/vendor/github.com/mattn/go-isatty/.travis.yml +++ /dev/null @@ -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) diff --git a/vendor/github.com/mattn/go-isatty/isatty_bsd.go b/vendor/github.com/mattn/go-isatty/isatty_bsd.go index 711f288..39bbcf0 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_bsd.go +++ b/vendor/github.com/mattn/go-isatty/isatty_bsd.go @@ -1,3 +1,4 @@ +//go:build (darwin || freebsd || openbsd || netbsd || dragonfly) && !appengine // +build darwin freebsd openbsd netbsd dragonfly // +build !appengine diff --git a/vendor/github.com/mattn/go-isatty/isatty_others.go b/vendor/github.com/mattn/go-isatty/isatty_others.go index ff714a3..3150322 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_others.go +++ b/vendor/github.com/mattn/go-isatty/isatty_others.go @@ -1,4 +1,5 @@ -// +build appengine js nacl +//go:build appengine || js || nacl || wasm +// +build appengine js nacl wasm package isatty diff --git a/vendor/github.com/mattn/go-isatty/isatty_plan9.go b/vendor/github.com/mattn/go-isatty/isatty_plan9.go index c5b6e0c..bae7f9b 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_plan9.go +++ b/vendor/github.com/mattn/go-isatty/isatty_plan9.go @@ -1,3 +1,4 @@ +//go:build plan9 // +build plan9 package isatty diff --git a/vendor/github.com/mattn/go-isatty/isatty_solaris.go b/vendor/github.com/mattn/go-isatty/isatty_solaris.go index bdd5c79..0c3acf2 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_solaris.go +++ b/vendor/github.com/mattn/go-isatty/isatty_solaris.go @@ -1,5 +1,5 @@ -// +build solaris -// +build !appengine +//go:build solaris && !appengine +// +build solaris,!appengine package isatty @@ -8,10 +8,9 @@ import ( ) // 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 { - var termio unix.Termio - err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) + _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA) return err == nil } diff --git a/vendor/github.com/mattn/go-isatty/isatty_tcgets.go b/vendor/github.com/mattn/go-isatty/isatty_tcgets.go index 31a1ca9..6778765 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_tcgets.go +++ b/vendor/github.com/mattn/go-isatty/isatty_tcgets.go @@ -1,4 +1,5 @@ -// +build linux aix +//go:build (linux || aix || zos) && !appengine +// +build linux aix zos // +build !appengine package isatty diff --git a/vendor/github.com/mattn/go-isatty/isatty_windows.go b/vendor/github.com/mattn/go-isatty/isatty_windows.go index 1fa8691..8e3c991 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_windows.go +++ b/vendor/github.com/mattn/go-isatty/isatty_windows.go @@ -1,5 +1,5 @@ -// +build windows -// +build !appengine +//go:build windows && !appengine +// +build windows,!appengine 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 -// 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 // Windows vista to 10 // see https://stackoverflow.com/a/18792477 for details diff --git a/vendor/github.com/mattn/go-isatty/renovate.json b/vendor/github.com/mattn/go-isatty/renovate.json deleted file mode 100644 index 5ae9d96..0000000 --- a/vendor/github.com/mattn/go-isatty/renovate.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": [ - "config:base" - ], - "postUpdateOptions": [ - "gomodTidy" - ] -} diff --git a/vendor/golang.org/x/crypto/poly1305/bits_compat.go b/vendor/golang.org/x/crypto/internal/poly1305/bits_compat.go similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/bits_compat.go rename to vendor/golang.org/x/crypto/internal/poly1305/bits_compat.go diff --git a/vendor/golang.org/x/crypto/poly1305/bits_go1.13.go b/vendor/golang.org/x/crypto/internal/poly1305/bits_go1.13.go similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/bits_go1.13.go rename to vendor/golang.org/x/crypto/internal/poly1305/bits_go1.13.go diff --git a/vendor/golang.org/x/crypto/poly1305/mac_noasm.go b/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/mac_noasm.go rename to vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go diff --git a/vendor/golang.org/x/crypto/poly1305/poly1305.go b/vendor/golang.org/x/crypto/internal/poly1305/poly1305.go similarity index 98% rename from vendor/golang.org/x/crypto/poly1305/poly1305.go rename to vendor/golang.org/x/crypto/internal/poly1305/poly1305.go index 9d7a6af..4aaea81 100644 --- a/vendor/golang.org/x/crypto/poly1305/poly1305.go +++ b/vendor/golang.org/x/crypto/internal/poly1305/poly1305.go @@ -15,7 +15,7 @@ // 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 // directly. -package poly1305 // import "golang.org/x/crypto/poly1305" +package poly1305 import "crypto/subtle" diff --git a/vendor/golang.org/x/crypto/poly1305/sum_amd64.go b/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/sum_amd64.go rename to vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go diff --git a/vendor/golang.org/x/crypto/poly1305/sum_amd64.s b/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/sum_amd64.s rename to vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s diff --git a/vendor/golang.org/x/crypto/poly1305/sum_generic.go b/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/sum_generic.go rename to vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go diff --git a/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.go b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/sum_ppc64le.go rename to vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go diff --git a/vendor/golang.org/x/crypto/poly1305/sum_ppc64le.s b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/sum_ppc64le.s rename to vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s diff --git a/vendor/golang.org/x/crypto/poly1305/sum_s390x.go b/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go similarity index 100% rename from vendor/golang.org/x/crypto/poly1305/sum_s390x.go rename to vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go diff --git a/vendor/golang.org/x/crypto/poly1305/sum_s390x.s b/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s similarity index 99% rename from vendor/golang.org/x/crypto/poly1305/sum_s390x.s rename to vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s index 69c64f8..aa9e049 100644 --- a/vendor/golang.org/x/crypto/poly1305/sum_s390x.s +++ b/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s @@ -18,7 +18,7 @@ // value. These limbs are, for the most part, zero extended and // placed into 64-bit vector register elements. Each vector // 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 // overflowing either 32-bits (before multiplication) or 64-bits // (after multiplication). diff --git a/vendor/golang.org/x/crypto/ssh/cipher.go b/vendor/golang.org/x/crypto/ssh/cipher.go index 8bd6b3d..bddbde5 100644 --- a/vendor/golang.org/x/crypto/ssh/cipher.go +++ b/vendor/golang.org/x/crypto/ssh/cipher.go @@ -18,7 +18,7 @@ import ( "io/ioutil" "golang.org/x/crypto/chacha20" - "golang.org/x/crypto/poly1305" + "golang.org/x/crypto/internal/poly1305" ) const ( diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go index 72887ab..c9d7eb4 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -1773,6 +1773,8 @@ const ( NFPROTO_NUMPROTO = 0xd ) +const SO_ORIGINAL_DST = 0x50 + type Nfgenmsg struct { Nfgen_family uint8 Version uint8 diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go index 1f73339..17f0331 100644 --- a/vendor/golang.org/x/sys/windows/types_windows.go +++ b/vendor/golang.org/x/sys/windows/types_windows.go @@ -680,7 +680,7 @@ const ( WTD_CHOICE_CERT = 5 WTD_STATEACTION_IGNORE = 0x00000000 - WTD_STATEACTION_VERIFY = 0x00000010 + WTD_STATEACTION_VERIFY = 0x00000001 WTD_STATEACTION_CLOSE = 0x00000002 WTD_STATEACTION_AUTO_CACHE = 0x00000003 WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004 diff --git a/vendor/modules.txt b/vendor/modules.txt index e8c627e..abc7a03 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -23,10 +23,10 @@ github.com/antonmedv/expr/optimizer github.com/antonmedv/expr/parser github.com/antonmedv/expr/parser/lexer github.com/antonmedv/expr/vm -# github.com/creack/pty v1.1.15 +# github.com/creack/pty v1.1.16 ## explicit; go 1.13 github.com/creack/pty -# github.com/fatih/color v1.12.0 +# github.com/fatih/color v1.13.0 ## explicit; go 1.13 github.com/fatih/color # github.com/gen2brain/beeep v0.0.0-20210529141713-5586760f0cc1 @@ -53,10 +53,10 @@ github.com/inconshreveable/mousetrap # github.com/maruel/panicparse v1.6.1 ## explicit; go 1.11 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 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 github.com/mattn/go-isatty # 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 ## explicit 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 golang.org/x/crypto/blowfish 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/ed25519 golang.org/x/crypto/ed25519/internal/edwards25519 +golang.org/x/crypto/internal/poly1305 golang.org/x/crypto/internal/subtle -golang.org/x/crypto/poly1305 golang.org/x/crypto/ssh golang.org/x/crypto/ssh/internal/bcrypt_pbkdf # golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 ## explicit; go 1.11 golang.org/x/net/html 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 golang.org/x/sys/cpu golang.org/x/sys/internal/unsafeheader