From: Diwas Rimal Date: Sat, 28 Dec 2024 17:09:04 +0000 (+0545) Subject: Print cli usage of `hugo gen chromastyles` alongside css X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=83cec785cffd19a00eee83b7550b99e42fea0377;p=brevno-suite%2Fhugo Print cli usage of `hugo gen chromastyles` alongside css --- diff --git a/commands/gen.go b/commands/gen.go index 83b4d637c..67aa7a896 100644 --- a/commands/gen.go +++ b/commands/gen.go @@ -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) {