github.com/easysoft/zendata@v0.0.0-20240513203326-705bd5a7fd67/cmd/command/action/generate.go (about) 1 package action 2 3 import ( 4 "github.com/easysoft/zendata/internal/command" 5 logUtils "github.com/easysoft/zendata/pkg/utils/log" 6 ) 7 8 func GenData(files []string) { 9 command.PrintStartInfo() 10 11 err := command.SetOutFormat() 12 defer logUtils.OutputFileWriter.Close() 13 if err != nil { 14 return 15 } 16 17 mainCtrl, _ := command.InitCtrl() 18 mainCtrl.Generate(files) 19 20 command.PrintEndInfo() 21 }