1
0
mirror of https://github.com/rancher/types.git synced 2025-09-08 16:39:00 +00:00

Refactor to using a shared controller factory between wrangler and norman

This commit is contained in:
Darren Shepherd
2020-05-15 17:43:34 -07:00
parent dfbf460320
commit 02e11aeb41
3 changed files with 107 additions and 107 deletions

View File

@@ -14,7 +14,7 @@ func main() {
}
func run() error {
return filepath.Walk("../..", func(path string, info os.FileInfo, err error) error {
return filepath.Walk(".", func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}

View File

@@ -103,6 +103,7 @@ func generateComposeType(baseCompose string, projectSchemas *types.Schemas, mana
func gofmt(workDir, pkg string) error {
cmd := exec.Command("goimports", "-w", "-l", "./"+pkg)
fmt.Println(cmd.Args)
cmd.Dir = workDir
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr