Skip to content

Commit 6bc167f

Browse files
authored
Update template_service.go
1 parent f957697 commit 6bc167f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎internal/business/template_service.go‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import (
44
"fmt"
55
copy2 "github.com/otiai10/copy"
66
"github.com/securenative/packman/internal/data"
7-
packman "github.com/securenative/packman/pkg"
87
"io/ioutil"
98
"os"
109
"path/filepath"
1110
"strings"
1211
)
1312

13+
const PackageName = "package_name"
14+
const PackagePath = "package_path"
15+
1416
type templateService struct {
1517
remoteStorage data.RemoteStorage
1618
scriptEngine data.ScriptEngine
@@ -29,8 +31,8 @@ func (this *templateService) Render(templatePath string, packagePath string, fla
2931
}
3032
}
3133

32-
flags[packman.PackagePathFlag] = packagePath
33-
flags[packman.PackageNameFlag] = filepath.Base(packagePath)
34+
flags[PackagePath] = packagePath
35+
flags[PackageName] = filepath.Base(packagePath)
3436

3537
scriptPath, err := toScriptPath(packagePath)
3638
if err != nil {

0 commit comments

Comments
 (0)
⌂ 换网址