File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1818 commit = "unset"
1919 date = "unset"
2020 builtBy = "unset"
21- goversion = "1.17.0 "
21+ goversion = "1.17.1 "
2222)
2323
2424const 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 ,
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments