Skip to content

Commit c050c64

Browse files
committed
init
1 parent 2382ffa commit c050c64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/writer.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ func (w *stdWriter) api(output string, name string, engine *template.Template) e
8181
dir := path.Dir(output)
8282
_ = os.MkdirAll(dir, os.ModePerm)
8383

84+
fmt.Printf("[output] %s \n", output)
85+
8486
return os.WriteFile(output, buf.Bytes(), os.ModePerm)
8587
}
8688

@@ -99,6 +101,12 @@ func (w *stdWriter) client(output string, name string, engine *template.Template
99101
return err
100102
}
101103

104+
output = tmpl.PwdJoinPath(output)
105+
dir := path.Dir(output)
106+
_ = os.MkdirAll(dir, os.ModePerm)
107+
108+
fmt.Printf("[client] %s \n", output)
109+
102110
return os.WriteFile(output, buf.Bytes(), os.ModePerm)
103111
}
104112

0 commit comments

Comments
 (0)