Skip to content

Commit

Permalink
feat: cleanup the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Sep 21, 2024
1 parent c96b3f0 commit 625319c
Show file tree
Hide file tree
Showing 24 changed files with 40 additions and 71 deletions.
10 changes: 0 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
project_name: goenv
41 changes: 17 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<p align="center">
<img alt="Goenv Logo" src="/static/logo.png?v=1.16.0" width="200" />
<img alt="Goenv Logo" src="/static/logo.png?v=1.17.0" width="200" />
<h3 align="center">Goenv</h3>
<p align="center">Manage Your Applications Go Environment</p>
<p align="center">
<a href="https://github.com/norwik/Goenv/actions/workflows/build.yml">
<img src="https://github.com/norwik/Goenv/actions/workflows/build.yml/badge.svg">
<a href="https://github.com/clivern/Goenv/actions/workflows/build.yml">
<img src="https://github.com/clivern/Goenv/actions/workflows/build.yml/badge.svg">
</a>
<a href="https://github.com/norwik/Goenv/releases">
<img src="https://img.shields.io/badge/Version-v1.16.0-red.svg">
<a href="https://github.com/clivern/Goenv/releases">
<img src="https://img.shields.io/badge/Version-v1.17.0-red.svg">
</a>
<a href="https://goreportcard.com/report/github.com/norwik/Goenv">
<img src="https://goreportcard.com/badge/github.com/norwik/Goenv?v=1.16.0">
<a href="https://goreportcard.com/report/github.com/clivern/Goenv">
<img src="https://goreportcard.com/badge/github.com/clivern/Goenv?v=1.17.0">
</a>
<a href="https://godoc.org/github.com/norwik/goenv">
<img src="https://godoc.org/github.com/norwik/goenv?status.svg">
<a href="https://godoc.org/github.com/clivern/goenv">
<img src="https://godoc.org/github.com/clivern/goenv?status.svg">
</a>
<a href="https://github.com/norwik/Goenv/blob/main/LICENSE">
<a href="https://github.com/clivern/Goenv/blob/main/LICENSE">
<img src="https://img.shields.io/badge/LICENSE-MIT-orange.svg">
</a>
</p>
Expand All @@ -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
Expand Down Expand Up @@ -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 <https://github.com/norwik/goenv/issues>
them to our issue tracker at <https://github.com/clivern/goenv/issues>

Usage:
goenv [command]
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions bin/release
Original file line number Diff line number Diff line change
@@ -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}
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package cmd
import (
"fmt"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/rehash.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/norwik/goenv/issues>`,
them to our issue tracker at <https://github.com/clivern/goenv/issues>`,
}

// Execute runs cmd tool
Expand Down
2 changes: 1 addition & 1 deletion cmd/satisfy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/norwik/goenv/core/module"
"github.com/clivern/goenv/core/module"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion core/module/charm_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
//
// ```
// import (
// "github.com/norwik/goenv/core/module"
// "github.com/clivern/goenv/core/module"
// )
//
//
Expand Down
2 changes: 1 addition & 1 deletion core/module/charm_spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
//
// ```
// import (
// "github.com/norwik/goenv/core/module"
// "github.com/clivern/goenv/core/module"
// )
//
//
Expand Down
4 changes: 2 additions & 2 deletions core/module/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/module/golang_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"testing"

"github.com/norwik/goenv/pkg"
"github.com/clivern/goenv/pkg"

"github.com/franela/goblin"
)
Expand Down
2 changes: 1 addition & 1 deletion core/service/file_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"testing"

"github.com/norwik/goenv/pkg"
"github.com/clivern/goenv/pkg"

"github.com/franela/goblin"
)
Expand Down
2 changes: 1 addition & 1 deletion core/service/installer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"testing"

"github.com/norwik/goenv/pkg"
"github.com/clivern/goenv/pkg"

"github.com/franela/goblin"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/norwik/goenv
module github.com/clivern/goenv

go 1.18

Expand Down
14 changes: 0 additions & 14 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion goenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"strings"

"github.com/norwik/goenv/cmd"
"github.com/clivern/goenv/cmd"
)

var (
Expand Down

0 comments on commit 625319c

Please sign in to comment.