Skip to content

Commit 83cec78

Browse files
diwasrimalbep
authored andcommitted
Print cli usage of hugo gen chromastyles alongside css
1 parent 4e52be8 commit 83cec78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎commands/gen.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ See https://xyproto.github.io/splash/docs/all.html for a preview of the availabl
7575
return err
7676
}
7777
formatter := html.New(html.WithAllClasses(true))
78-
formatter.WriteCSS(os.Stdout, style)
78+
w := os.Stdout
79+
fmt.Fprintf(w, "/* Generated using: hugo %s */\n\n", strings.Join(os.Args[1:], " "))
80+
formatter.WriteCSS(w, style)
7981
return nil
8082
},
8183
withc: func(cmd *cobra.Command, r *rootCommand) {

0 commit comments

Comments
 (0)