Skip to content

Commit a608fbd

Browse files
committed
tweak rename
1 parent c2ffa90 commit a608fbd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Go
1414
uses: actions/setup-go@v2
1515
with:
16-
go-version: 1.16
16+
go-version: 1.17
1717
id: go
1818

1919
- name: Check out code

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818
commit = "unset"
1919
date = "unset"
2020
builtBy = "unset"
21-
goversion = "1.17.0"
21+
goversion = "1.17.1"
2222
)
2323

2424
const usage = `Run git command to all repositories in the current directory.
@@ -75,7 +75,7 @@ func main() {
7575
writer := os.Stdout
7676
errWriter := os.Stderr
7777

78-
err := (&syncer.Cmd{
78+
err := (&syncer.Sync{
7979
TargetDir: *targetDir,
8080
IgnoreDir: *ignoreDir,
8181
TimeOut: *timeout,

syncer/syncer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"golang.org/x/sync/errgroup"
1414
)
1515

16-
// Cmd is struct
17-
type Cmd struct {
16+
// Sync is struct
17+
type Sync struct {
1818
// TimeOut is timeout of performed command on one direcotory.
1919
TimeOut string
2020

@@ -41,7 +41,7 @@ type Cmd struct {
4141
}
4242

4343
// Run is execute logic
44-
func (s *Cmd) Run() (err error) {
44+
func (s *Sync) Run() (err error) {
4545
//
4646
// list target directories
4747
//
@@ -144,7 +144,7 @@ func (s *Cmd) Run() (err error) {
144144
}
145145

146146
// execCmd is execute git command
147-
func (s *Cmd) execCmd(ctx context.Context, d string) (err error) {
147+
func (s *Sync) execCmd(ctx context.Context, d string) (err error) {
148148
absPath, err := filepath.Abs(d)
149149
if err != nil {
150150
err = errors.Wrapf(err, "get.abs.failed: %s", d)

0 commit comments

Comments
 (0)