Skip to content

Commit

Permalink
💬 Tweak template format
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Mar 10, 2022
1 parent dd6def7 commit 3f2e73d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ func run(cmd *cobra.Command, args []string) (err error) {

func generateFilename(directory, namespace string, outputFormat sqlformat.Format) (string, error) {
directory = path.Clean(directory)
t, err := template.New("filename").Parse("{{.directory}}/{{.namespace}}-{{.now.Format \"2006-01-02-150405\"}}")
t, err := template.
New("filename").
Parse("{{.directory}}/{{.namespace}}_{{.now.Format \"2006-01-02_150405\"}}")
if err != nil {
return "", err
}
Expand Down

0 comments on commit 3f2e73d

Please sign in to comment.