Skip to content

Commit f453751

Browse files
committed
feat: add support for custom private repo dir
1 parent 37b4195 commit f453751

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import (
1313
const ProjectCfgFile = "project"
1414
const DOConfigDir = ".do"
1515
const DeployTemplateCfgFile = "deploy.template"
16-
const PrivateRepoDir = "private"
16+
17+
var PrivateRepoDir string
1718

1819
var CfgExt = []string{".yaml", ".yml"}
1920

@@ -32,6 +33,7 @@ var ErrInvalidUsage = errors.New("invalid usage")
3233
func main() {
3334
var err error
3435

36+
flag.StringVar(&PrivateRepoDir, "private", PrivateRepoDir, "private repo directory")
3537
flag.Parse()
3638

3739
subcommand := flag.Arg(0)

0 commit comments

Comments
 (0)