Added template sorter, MainTest separation
* Moved MainTests into a dedicated folder * Added sorter for templates (sorts structs to top) * Fixed all the broken tests * Tidied up output.go functions * Only creating one MainTest (main_test.go) per app run now * Split test imports up into normal test imports & main test imports
This commit is contained in:
parent
c84d35d394
commit
d3aeb7375d
13 changed files with 399 additions and 198 deletions
7
main.go
7
main.go
|
@ -24,13 +24,6 @@ func main() {
|
|||
os.Exit(-1)
|
||||
}
|
||||
|
||||
// Load all templates
|
||||
err = cmdData.LoadTemplates()
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to load templates: %s\n", err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
|
||||
// Set up the cobra root command
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "sqlboiler",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue