Skip to content

Commit

Permalink
#14 add . import alias for internal package.
Browse files Browse the repository at this point in the history
  • Loading branch information
petr-korobeinikov committed Jan 19, 2021
1 parent 007eca7 commit 65f4a7f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"
"os"
"scm/internal"
. "scm/internal"
)

func main() {
Expand All @@ -15,27 +15,27 @@ func main() {
}
}()

scmBin, scmUrl, err := internal.ParseArgs(os.Args)
scmBin, scmUrl, err := ParseArgs(os.Args)
if err != nil {
return
}

cfg, err := internal.ReadCfg(scmUrl)
cfg, err := ReadCfg(scmUrl)
if err != nil {
return
}

err = internal.PrepareLocalWorkingCopyPath(cfg.ScmWorkingCopyPath, cfg.ScmWorkspaceDirDefaultPerm)
err = PrepareLocalWorkingCopyPath(cfg.ScmWorkingCopyPath, cfg.ScmWorkspaceDirDefaultPerm)
if err != nil {
return
}

err = internal.Clone(scmBin, scmUrl, cfg.ScmWorkingCopyPath)
err = Clone(scmBin, scmUrl, cfg.ScmWorkingCopyPath)
if err != nil {
return
}

err = internal.ExecutePostCmd(cfg)
err = ExecutePostCmd(cfg)
if err != nil {
return
}
Expand Down

0 comments on commit 65f4a7f

Please sign in to comment.