Skip to content
This repository was archived by the owner on Oct 3, 2022. It is now read-only.

Commit 6bcfd18

Browse files
authored
Merge pull request #19 from Akimon658/docs/v1.1.1
Update `remove` section
2 parents 1279d6f + 87d2107 commit 6bcfd18

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,23 @@ The output informations are the command name, package path, and command version.
6969
### Remove the specified binary
7070

7171
If you want to remove a command under $GOPATH/bin or $GOBIN, use the `remove` subcommand.
72-
The `remove` subcommand asks if you want to remove it before removing it.
72+
It asks whether you want to remove it before removing it.
7373

7474
```
7575
$ gup remove subaru gal ubume
76-
gup:CHECK: remove /home/nao/.go/bin/subaru? [Y/n] Y
77-
gup:INFO : removed /home/nao/.go/bin/subaru
78-
gup:CHECK: remove /home/nao/.go/bin/gal? [Y/n] n
79-
gup:INFO : cancel removal /home/nao/.go/bin/gal
80-
gup:CHECK: remove /home/nao/.go/bin/ubume? [Y/n] Y
81-
gup:INFO : removed /home/nao/.go/bin/ubume
76+
Do you want to remove /home/nao/.go/bin/subaru? [Y/n] y
77+
Removed /home/nao/.go/bin/subaru
78+
Do you want to remove /home/nao/.go/bin/gal? [Y/n] n
79+
Removal cancelled
80+
Do you want to remove /home/nao/.go/bin/ubume? [Y/n] y
81+
Removed /home/nao/.go/bin/ubume
8282
```
8383

8484
If you want to force the removal, use the `--force` option.
8585

8686
```
8787
$ gup remove --force gal
88-
gup:INFO : removed /home/nao/.go/bin/gal
88+
Removed /home/nao/.go/bin/gal
8989
```
9090

9191
### Check if the binary is the latest version

cmd/remove.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func remove(args []string, force bool) int {
5858

5959
if !force {
6060
if !print.Question(fmt.Sprintf("Do you want to remove %s?", target)) {
61-
fmt.Println("removal cancelled")
61+
fmt.Println("Removal cancelled")
6262
continue
6363
}
6464
}
@@ -69,7 +69,7 @@ func remove(args []string, force bool) int {
6969
continue
7070
}
7171

72-
fmt.Println("removed " + target)
72+
fmt.Println("Removed " + target)
7373
}
7474
return code
7575
}

doc/ja/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ gup:INFO : [3/3] github.com/nao1215/ubume/cmd/ubume (Already up-to-date: v1.4.1)
7070

7171
```
7272
$ gup remove subaru gal ubume
73-
gup:CHECK: remove /home/nao/.go/bin/subaru? [Y/n] Y
74-
gup:INFO : removed /home/nao/.go/bin/subaru
75-
gup:CHECK: remove /home/nao/.go/bin/gal? [Y/n] n
76-
gup:INFO : cancel removal /home/nao/.go/bin/gal
77-
gup:CHECK: remove /home/nao/.go/bin/ubume? [Y/n] Y
78-
gup:INFO : removed /home/nao/.go/bin/ubume
73+
Do you want to remove /home/nao/.go/bin/subaru? [Y/n] y
74+
Removed /home/nao/.go/bin/subaru
75+
Do you want to remove /home/nao/.go/bin/gal? [Y/n] n
76+
Removal cancelled
77+
Do you want to remove /home/nao/.go/bin/ubume? [Y/n] y
78+
Removed /home/nao/.go/bin/ubume
7979
```
8080

8181
確認無しで削除したい場合は, `--force` オプションを使用してください。
8282

8383
```
8484
$ gup remove --force gal
85-
gup:INFO : removed /home/nao/.go/bin/gal
85+
Removed /home/nao/.go/bin/gal
8686
```
8787

8888
### バイナリが最新版かどうかのチェック

0 commit comments

Comments
 (0)