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:
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user