Add comments for file writer func
@@ -589,6 +589,7 @@ func apiDirName(apiVersion string) string {
return strings.Split(groupName(apiVersion), ".")[0]
}
+// Writes file to a given path and data buffer, as well as prints out a message confirming creation of a file
func writeFileAndPrint(filePath string, data []byte, fileMode os.FileMode) error {
if err := ioutil.WriteFile(filePath, data, fileMode); err != nil {
return err
