Skip to content

Commit

Permalink
Merge pull request #75 from nao1215/delete-update-go
Browse files Browse the repository at this point in the history
Delete update-go subcommand
  • Loading branch information
nao1215 authored Feb 26, 2023
2 parents d494d88 + 304c6a8 commit a66e985
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 402 deletions.
22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,26 +150,8 @@ $ gup update --notify
![success](./doc/img/notify_success.png)
![warning](./doc/img/notify_warning.png)

### Experimental: install or update golang (only support *NIX/Mac)
update-go subcommand update golang if golang installed in /usr/local/go
is not up-to-date. If golang is not on the system, gup will not install
the latest version of golang in /usr/local/go.

update-go subcommand is an experimental feature. In the future, update-go
may be removed or become a another command.
```
$ sudo gup update-go
gup:INFO : current=1.19.6, latest=1.20.1
gup:INFO : download go1.20.1.linux-amd64.tar.gz at current directory
gup:INFO : [compare sha256 checksum]
gup:INFO : expect: 000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02
gup:INFO : got : 000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02
gup:INFO : backup original /usr/local/go as /usr/local/go.backup
gup:INFO : start extract go1.20.1.linux-amd64.tar.gz at /usr/local/go
gup:INFO : delete backup (/usr/local/go.backup)
gup:INFO : delete go1.20.1.linux-amd64.tar.gz
gup:INFO : success to update golang (version 1.20.1)
```
### Deprecated: install or update golang (only support *NIX/Mac)
The update-go subcommand was removed in v0.18.0. We created a another project called ["golling"](https://github.com/nao1215/golling) command that has the same functionality as update-go subcommand.


# Contributing
Expand Down
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ var OsExit = os.Exit
func Execute() {
assets.DeployIconIfNeeded()
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.SilenceUsage = true
rootCmd.SilenceErrors = true
if err := rootCmd.Execute(); err != nil {
print.Err(err)
}
Expand Down
344 changes: 0 additions & 344 deletions cmd/update-go.go

This file was deleted.

Loading

0 comments on commit a66e985

Please sign in to comment.