Skip to content

Commit

Permalink
refactor: add message after code run
Browse files Browse the repository at this point in the history
  • Loading branch information
mukezhz committed Apr 14, 2024
1 parent c84503f commit 9f84b15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/utility/fx_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ const templateText = `package {{.PackageName}}
import "go.uber.org/fx"
// This file is generated by geng. DO NOT EDIT.
// File generated at: {{.Timestamp}}
// File will be overwritten when running geng again.
var {{.ModuleName}} = fx.Module("{{.Name}}",
{{- range .Providers}}
Expand Down Expand Up @@ -131,4 +133,6 @@ func generateFile(dependencies map[string][]string) {
panic(err)
}
}
count := len(dependencies)
fmt.Printf("Generated %d module files\n", count)
}

0 comments on commit 9f84b15

Please sign in to comment.