Skip to content

Commit

Permalink
Print cli usage of hugo gen chromastyles alongside css
Browse files Browse the repository at this point in the history
  • Loading branch information
diwasrimal authored and bep committed Dec 30, 2024
1 parent 4e52be8 commit 83cec78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ See https://xyproto.github.io/splash/docs/all.html for a preview of the availabl
return err
}
formatter := html.New(html.WithAllClasses(true))
formatter.WriteCSS(os.Stdout, style)
w := os.Stdout
fmt.Fprintf(w, "/* Generated using: hugo %s */\n\n", strings.Join(os.Args[1:], " "))
formatter.WriteCSS(w, style)
return nil
},
withc: func(cmd *cobra.Command, r *rootCommand) {
Expand Down

0 comments on commit 83cec78

Please sign in to comment.