Skip to content

Commit 2817d58

Browse files
committed
rename command
1 parent 4f33e08 commit 2817d58

File tree

7 files changed

+315
-40
lines changed

7 files changed

+315
-40
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ gs_*
2929
.vscode
3030

3131
dist
32-
gh_dev
32+
gih_dev

.goreleaser.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
2-
# Make sure to check the documentation at http://goreleaser.com
3-
project_name: gh
1+
project_name: gih
42
env:
53
- GO111MODULE=on
64
before:
75
hooks:
86
- go mod tidy
97
builds:
108
-
11-
main: ./gh/main.go
12-
binary: gh
9+
main: ./gih/main.go
10+
binary: gih
1311
ldflags:
1412
- -s -w
1513
- -X main.version={{ .Version }}

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.PHONY: build install update restore tidy update_all outdated
22

33
build:
4-
GO111MODULE=on go build -o gh_dev ./gh
4+
GO111MODULE=on go build -o gih_dev ./gih
55

66
install:
7-
GO111MODULE=on go install -i ./gh
7+
GO111MODULE=on go install -i ./gih
88

99
update: update_all tidy
1010

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
# git-here
22

3-
> `git-here(gh)` is Run git command to all repositories in the current directory.
3+
> `git-here(gih)` is Run git command to all repositories in the current directory.
44
55
<br/>
66

77
![unittest](https://github.com/takecy/git-here/workflows/unittest/badge.svg)
88
[![Go Report Card](https://goreportcard.com/badge/github.com/takecy/git-here)](https://goreportcard.com/report/github.com/takecy/git-here)
9-
![](https://img.shields.io/badge/golang-1.15.0-blue.svg?style=flat-square)
9+
![](https://img.shields.io/badge/golang-1.15.2-blue.svg?style=flat-square)
1010
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/takecy/git-here)
1111
![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
1212

1313
<br/>
1414

1515
## Usage
1616
```
17-
$ gh pull
17+
$ gih pull
1818
```
1919
```
20-
$ gh fetch --all -p
20+
$ gih fetch --all -p
2121
```
2222
```
23-
$ gh --target ^cool-tool pull
23+
$ gih --target ^cool-tool pull
2424
```
2525
```
26-
$ gh --target ^cool-tool --ignore ^wip-command pull
26+
$ gih --target ^cool-tool --ignore ^wip-command pull
2727
```
2828

2929
### Default target directories
@@ -40,18 +40,18 @@ $ tree
4040
## Install
4141
### via Go
4242
```shell
43-
$ go get -u github.com/takecy/git-here/gh
43+
$ go get -u github.com/takecy/git-here/gih
4444
```
4545
### via Binary
4646
Download from [Release Page](https://github.com/takecy/git-here/releases) for your environment.
4747
and copy binary to your `$PATH`.
4848

4949
### Print usage
5050
```
51-
$ gh
51+
$ gih
5252
5353
Usage:
54-
gh [original_options] <git_command> [git_options]
54+
gih [original_options] <git_command> [git_options]
5555
5656
Original Options:
5757
--target Specific target directory with regex.
@@ -71,7 +71,7 @@ Options:
7171

7272
## Development
7373

74-
* Go 1.13+
74+
* Go 1.15+
7575

7676
#### Why this repository have vendor?
7777
It is to simplify development. You can start right away just by cloning.
@@ -80,7 +80,7 @@ It is to simplify development. You can start right away just by cloning.
8080
```
8181
$ git clone git@github.com:takecy/git-here.git
8282
$ cd git-here
83-
$ DEBUG=* go run gh/main.go version
83+
$ DEBUG=* go run gih/main.go version
8484
```
8585

8686
### Testing

gh/main.go gih/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const usage = `Run git command to all repositories in the current directory.
2323
more info: https://github.com/takecy/git-here#readme
2424
2525
Usage:
26-
gh [original_options] <git_command> [git_options]
26+
gih [original_options] <git_command> [git_options]
2727
2828
Original Options:
2929
--target Specific target directory with regex.

go.mod

+9-10
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,22 @@ module github.com/takecy/git-here
33
require (
44
github.com/blang/semver v3.5.1+incompatible
55
github.com/fatih/color v1.9.0
6+
github.com/google/go-cmp v0.5.2 // indirect
67
github.com/kr/text v0.2.0 // indirect
78
github.com/matryer/is v1.4.0
89
github.com/mattn/go-colorable v0.1.7 // indirect
910
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
10-
github.com/onsi/ginkgo v1.14.0 // indirect
11+
github.com/onsi/ginkgo v1.14.1 // indirect
12+
github.com/onsi/gomega v1.10.2 // indirect
1113
github.com/pkg/errors v0.9.1
1214
github.com/rhysd/go-github-selfupdate v1.2.2
13-
github.com/ulikunitz/xz v0.5.7 // indirect
14-
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 // indirect
15-
golang.org/x/net v0.0.0-20200707034311-ab3426394381 // indirect
16-
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
15+
github.com/ulikunitz/xz v0.5.8 // indirect
16+
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a // indirect
17+
golang.org/x/net v0.0.0-20200904194848-62affa334b73 // indirect
18+
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 // indirect
1719
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
18-
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect
19-
golang.org/x/text v0.3.3 // indirect
20-
google.golang.org/appengine v1.6.6 // indirect
21-
google.golang.org/protobuf v1.25.0 // indirect
22-
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
20+
golang.org/x/sys v0.0.0-20200917073148-efd3b9a0ff20 // indirect
21+
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
2322
)
2423

2524
go 1.13

0 commit comments

Comments
 (0)