Skip to content

Commit a66e985

Browse files
authored
Merge pull request #75 from nao1215/delete-update-go
Delete update-go subcommand
2 parents d494d88 + 304c6a8 commit a66e985

File tree

4 files changed

+4
-402
lines changed

4 files changed

+4
-402
lines changed

README.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -150,26 +150,8 @@ $ gup update --notify
150150
![success](./doc/img/notify_success.png)
151151
![warning](./doc/img/notify_warning.png)
152152

153-
### Experimental: install or update golang (only support *NIX/Mac)
154-
update-go subcommand update golang if golang installed in /usr/local/go
155-
is not up-to-date. If golang is not on the system, gup will not install
156-
the latest version of golang in /usr/local/go.
157-
158-
update-go subcommand is an experimental feature. In the future, update-go
159-
may be removed or become a another command.
160-
```
161-
$ sudo gup update-go
162-
gup:INFO : current=1.19.6, latest=1.20.1
163-
gup:INFO : download go1.20.1.linux-amd64.tar.gz at current directory
164-
gup:INFO : [compare sha256 checksum]
165-
gup:INFO : expect: 000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02
166-
gup:INFO : got : 000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02
167-
gup:INFO : backup original /usr/local/go as /usr/local/go.backup
168-
gup:INFO : start extract go1.20.1.linux-amd64.tar.gz at /usr/local/go
169-
gup:INFO : delete backup (/usr/local/go.backup)
170-
gup:INFO : delete go1.20.1.linux-amd64.tar.gz
171-
gup:INFO : success to update golang (version 1.20.1)
172-
```
153+
### Deprecated: install or update golang (only support *NIX/Mac)
154+
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.
173155

174156

175157
# Contributing

cmd/root.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ var OsExit = os.Exit
2222
func Execute() {
2323
assets.DeployIconIfNeeded()
2424
rootCmd.CompletionOptions.DisableDefaultCmd = true
25+
rootCmd.SilenceUsage = true
26+
rootCmd.SilenceErrors = true
2527
if err := rootCmd.Execute(); err != nil {
2628
print.Err(err)
2729
}

cmd/update-go.go

Lines changed: 0 additions & 344 deletions
This file was deleted.

0 commit comments

Comments
 (0)