From 625319cbaa5b0e614d2d14d5e34237043fb6654c Mon Sep 17 00:00:00 2001 From: Clivern Date: Sat, 22 Oct 2022 23:50:47 +0200 Subject: [PATCH] feat: cleanup the project --- .goreleaser.yml | 10 -------- README.md | 41 +++++++++++++------------------- bin/release | 4 ++-- cmd/config.go | 2 +- cmd/exec.go | 2 +- cmd/global.go | 2 +- cmd/init.go | 2 +- cmd/install.go | 2 +- cmd/local.go | 2 +- cmd/rehash.go | 2 +- cmd/root.go | 2 +- cmd/satisfy.go | 2 +- cmd/uninstall.go | 2 +- cmd/version.go | 2 +- cmd/versions.go | 2 +- core/module/charm_select.go | 2 +- core/module/charm_spinner.go | 2 +- core/module/golang.go | 4 ++-- core/module/golang_test.go | 2 +- core/service/file_system_test.go | 2 +- core/service/installer_test.go | 2 +- go.mod | 2 +- go.sum | 14 ----------- goenv.go | 2 +- 24 files changed, 40 insertions(+), 71 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 1d97dfb..7b49327 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -40,14 +40,4 @@ changelog: exclude: - '^docs:' - '^test:' -brews: - - name: goenv - homepage: 'https://github.com/Norwik/homebrew-tools' - tap: - owner: Norwik - name: homebrew-tools - token: "{{ .Env.TAP_GITHUB_TOKEN }}" - commit_author: - name: todd-the-bot - email: support@clivern.com project_name: goenv diff --git a/README.md b/README.md index 5297acd..137f922 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@

- Goenv Logo + Goenv Logo

Goenv

Manage Your Applications Go Environment

- - + + - - + + - - + + - - + + - +

@@ -32,23 +32,16 @@ Goenv helps you to work with multiple `golang` versions at the same time whether ## Usage -Download [the latest `goenv` binary](https://github.com/norwik/Goenv/releases). Make it executable from everywhere. +Download [the latest `goenv` binary](https://github.com/clivern/Goenv/releases). Make it executable from everywhere. ```zsh -$ export GOENV_LATEST_VERSION=$(curl --silent "https://api.github.com/repos/norwik/Goenv/releases/latest" | jq '.tag_name' | sed -E 's/.*"([^"]+)".*/\1/' | tr -d v) +$ export GOENV_LATEST_VERSION=$(curl --silent "https://api.github.com/repos/clivern/Goenv/releases/latest" | jq '.tag_name' | sed -E 's/.*"([^"]+)".*/\1/' | tr -d v) # For Linux -$ curl -sL https://github.com/norwik/Goenv/releases/download/v{$GOENV_LATEST_VERSION}/goenv_Linux_x86_64.tar.gz | tar xz +$ curl -sL https://github.com/clivern/Goenv/releases/download/v{$GOENV_LATEST_VERSION}/goenv_Linux_x86_64.tar.gz | tar xz # For Mac -$ curl -sL https://github.com/norwik/Goenv/releases/download/v{$GOENV_LATEST_VERSION}/goenv_Darwin_x86_64.tar.gz | tar xz -``` - -Or install with homebrew - -```zsh -$ brew tap norwik/tools -$ brew install norwik/tools/goenv +$ curl -sL https://github.com/clivern/Goenv/releases/download/v{$GOENV_LATEST_VERSION}/goenv_Darwin_x86_64.tar.gz | tar xz ``` Configure the goenv using the following command @@ -106,7 +99,7 @@ $ goenv --help 🐺 Manage Your Applications Go Environment. If you have any suggestions, bug reports, or annoyances please report -them to our issue tracker at +them to our issue tracker at Usage: goenv [command] @@ -177,12 +170,12 @@ When you execute a shim, `goenv` determines which Go version to use by reading i For transparency into our release cycle and in striving to maintain backward compatibility, Goenv is maintained under the [Semantic Versioning guidelines](https://semver.org/) and release process is predictable and business-friendly. -See the [Releases section of our GitHub project](https://github.com/norwik/goenv/releases) for changelogs for each release version of Goenv. It contains summaries of the most noteworthy changes made in each release. Also see the [Milestones section](https://github.com/norwik/goenv/milestones) for the future roadmap. +See the [Releases section of our GitHub project](https://github.com/clivern/goenv/releases) for changelogs for each release version of Goenv. It contains summaries of the most noteworthy changes made in each release. Also see the [Milestones section](https://github.com/clivern/goenv/milestones) for the future roadmap. ## Bug tracker -If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/norwik/goenv/issues +If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/clivern/goenv/issues ## Security Issues diff --git a/bin/release b/bin/release index a4612bd..16e2f52 100755 --- a/bin/release +++ b/bin/release @@ -1,7 +1,7 @@ #!/bin/bash # Fetch latest version -export LATEST_VERSION=$(curl --silent "https://api.github.com/repos/norwik/goenv/releases/latest" | jq '.tag_name' | sed -E 's/.*"([^"]+)".*/\1/') +export LATEST_VERSION=$(curl --silent "https://api.github.com/repos/clivern/goenv/releases/latest" | jq '.tag_name' | sed -E 's/.*"([^"]+)".*/\1/') # Update go checksum database (sum.golang.org) immediately after release -curl --silent https://sum.golang.org/lookup/github.com/norwik/goenv@{$LATEST_VERSION} +curl --silent https://sum.golang.org/lookup/github.com/clivern/goenv@{$LATEST_VERSION} diff --git a/cmd/config.go b/cmd/config.go index cb79347..650b04e 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -9,7 +9,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/exec.go b/cmd/exec.go index 0e81d25..e1c1294 100644 --- a/cmd/exec.go +++ b/cmd/exec.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/global.go b/cmd/global.go index 5112b01..30469ac 100644 --- a/cmd/global.go +++ b/cmd/global.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/init.go b/cmd/init.go index a5beb8b..47aeb4a 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -7,7 +7,7 @@ package cmd import ( "fmt" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/install.go b/cmd/install.go index ba91f9e..11b2f5b 100644 --- a/cmd/install.go +++ b/cmd/install.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/local.go b/cmd/local.go index 474db94..d3b3703 100644 --- a/cmd/local.go +++ b/cmd/local.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/rehash.go b/cmd/rehash.go index 03a99e0..a1a1d40 100644 --- a/cmd/rehash.go +++ b/cmd/rehash.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/root.go b/cmd/root.go index 1e5d275..b8ff503 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -18,7 +18,7 @@ var rootCmd = &cobra.Command{ Short: `🐺 Manage Your Applications Go Environment. If you have any suggestions, bug reports, or annoyances please report -them to our issue tracker at `, +them to our issue tracker at `, } // Execute runs cmd tool diff --git a/cmd/satisfy.go b/cmd/satisfy.go index cd2840d..06cfede 100644 --- a/cmd/satisfy.go +++ b/cmd/satisfy.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/uninstall.go b/cmd/uninstall.go index 67caa99..761e716 100644 --- a/cmd/uninstall.go +++ b/cmd/uninstall.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/version.go b/cmd/version.go index 22d664d..676a1c6 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/cmd/versions.go b/cmd/versions.go index 1bd4b88..b0ba2fd 100644 --- a/cmd/versions.go +++ b/cmd/versions.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "github.com/norwik/goenv/core/module" + "github.com/clivern/goenv/core/module" "github.com/spf13/cobra" ) diff --git a/core/module/charm_select.go b/core/module/charm_select.go index 43dc44a..186e2c4 100644 --- a/core/module/charm_select.go +++ b/core/module/charm_select.go @@ -18,7 +18,7 @@ import ( // // ``` // import ( -// "github.com/norwik/goenv/core/module" +// "github.com/clivern/goenv/core/module" // ) // // diff --git a/core/module/charm_spinner.go b/core/module/charm_spinner.go index 43ff926..c76555e 100644 --- a/core/module/charm_spinner.go +++ b/core/module/charm_spinner.go @@ -16,7 +16,7 @@ import ( // // ``` // import ( -// "github.com/norwik/goenv/core/module" +// "github.com/clivern/goenv/core/module" // ) // // diff --git a/core/module/golang.go b/core/module/golang.go index d3a4a3a..b7c0461 100644 --- a/core/module/golang.go +++ b/core/module/golang.go @@ -10,8 +10,8 @@ import ( "path/filepath" "strings" - "github.com/norwik/goenv/core/service" - "github.com/norwik/goenv/core/util" + "github.com/clivern/goenv/core/service" + "github.com/clivern/goenv/core/util" ) // Golang type diff --git a/core/module/golang_test.go b/core/module/golang_test.go index 1782a9f..d77e98d 100644 --- a/core/module/golang_test.go +++ b/core/module/golang_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/norwik/goenv/pkg" + "github.com/clivern/goenv/pkg" "github.com/franela/goblin" ) diff --git a/core/service/file_system_test.go b/core/service/file_system_test.go index 12db0d8..2532d3c 100644 --- a/core/service/file_system_test.go +++ b/core/service/file_system_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/norwik/goenv/pkg" + "github.com/clivern/goenv/pkg" "github.com/franela/goblin" ) diff --git a/core/service/installer_test.go b/core/service/installer_test.go index 4210bfd..ba44326 100644 --- a/core/service/installer_test.go +++ b/core/service/installer_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/norwik/goenv/pkg" + "github.com/clivern/goenv/pkg" "github.com/franela/goblin" ) diff --git a/go.mod b/go.mod index 6f8b740..e1a3610 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/norwik/goenv +module github.com/clivern/goenv go 1.18 diff --git a/go.sum b/go.sum index 66d9916..ef4676c 100644 --- a/go.sum +++ b/go.sum @@ -4,18 +4,10 @@ github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiE github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= github.com/charmbracelet/bubbles v0.16.0 h1:jlJxnPj7T0G4rVQhh3gmG9tZu1Xkn+slKax0itFX6fQ= github.com/charmbracelet/bubbles v0.16.0/go.mod h1:D4UDwNOTGBU2NtVEWtwfhStJO75L8OsqcO7csWH6RrA= -github.com/charmbracelet/bubbletea v0.26.4 h1:2gDkkzLZaTjMl/dQBpNVtnvcCxsh/FCkimep7FC9c40= -github.com/charmbracelet/bubbletea v0.26.4/go.mod h1:P+r+RRA5qtI1DOHNFn0otoNwB4rn+zNAzSj/EXz6xU0= -github.com/charmbracelet/bubbletea v0.26.5 h1:90pqTPElAReb/qQUgSMUresTkfwVr0Wx+zczeHHOgxk= -github.com/charmbracelet/bubbletea v0.26.5/go.mod h1:dz8CWPlfCCGLFbBlTY4N7bjLiyOGDJEnd2Muu7pOWhk= -github.com/charmbracelet/bubbletea v0.26.6 h1:zTCWSuST+3yZYZnVSvbXwKOPRSNZceVeqpzOLN2zq1s= -github.com/charmbracelet/bubbletea v0.26.6/go.mod h1:dz8CWPlfCCGLFbBlTY4N7bjLiyOGDJEnd2Muu7pOWhk= github.com/charmbracelet/bubbletea v0.27.0 h1:Mznj+vvYuYagD9Pn2mY7fuelGvP0HAXtZYGgRBCbHvU= github.com/charmbracelet/bubbletea v0.27.0/go.mod h1:5MdP9XH6MbQkgGhnlxUqCNmBXf9I74KRQ8HIidRxV1Y= github.com/charmbracelet/lipgloss v0.6.0 h1:1StyZB9vBSOyuZxQUcUwGr17JmojPNm87inij9N3wJY= github.com/charmbracelet/lipgloss v0.6.0/go.mod h1:tHh2wr34xcHjC2HCXIlGSG1jaDF0S0atAUvBMP6Ppuk= -github.com/charmbracelet/x/ansi v0.1.2 h1:6+LR39uG8DE6zAmbu023YlqjJHkYXDF1z36ZwzO4xZY= -github.com/charmbracelet/x/ansi v0.1.2/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw= github.com/charmbracelet/x/ansi v0.1.4 h1:IEU3D6+dWwPSgZ6HBH+v6oUuZ/nVawMiWj5831KfiLM= github.com/charmbracelet/x/ansi v0.1.4/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw= github.com/charmbracelet/x/input v0.1.0 h1:TEsGSfZYQyOtp+STIjyBq6tpRaorH0qpwZUj8DavAhQ= @@ -68,17 +60,11 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no= github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM= golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= -golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= diff --git a/goenv.go b/goenv.go index d8026e4..f7cca22 100644 --- a/goenv.go +++ b/goenv.go @@ -9,7 +9,7 @@ import ( "os" "strings" - "github.com/norwik/goenv/cmd" + "github.com/clivern/goenv/cmd" ) var (