]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
commands: Provide examples for chromastyles flags
authorJoe Mooring <joe@mooring.com>
Thu, 18 Apr 2024 19:16:36 +0000 (12:16 -0700)
committerGitHub <noreply@github.com>
Thu, 18 Apr 2024 19:16:36 +0000 (12:16 -0700)
Closes #12387

commands/gen.go

index 88eb1b6fc7f20f03d2c2dceac394b20e309a5369..476457fbeaa04ae7eed9c1f84524c56627e39839 100644 (file)
@@ -78,9 +78,9 @@ See https://xyproto.github.io/splash/docs/all.html for a preview of the availabl
                                cmd.ValidArgsFunction = cobra.NoFileCompletions
                                cmd.PersistentFlags().StringVar(&style, "style", "friendly", "highlighter style (see https://xyproto.github.io/splash/docs/)")
                                _ = cmd.RegisterFlagCompletionFunc("style", cobra.NoFileCompletions)
-                               cmd.PersistentFlags().StringVar(&highlightStyle, "highlightStyle", "", "style used for highlighting lines (see https://github.com/alecthomas/chroma)")
+                               cmd.PersistentFlags().StringVar(&highlightStyle, "highlightStyle", "", `foreground and background colors for highlighted lines, e.g. --highlightStyle "#fff000 bg:#000fff"`)
                                _ = cmd.RegisterFlagCompletionFunc("highlightStyle", cobra.NoFileCompletions)
-                               cmd.PersistentFlags().StringVar(&linesStyle, "linesStyle", "", "style used for line numbers (see https://github.com/alecthomas/chroma)")
+                               cmd.PersistentFlags().StringVar(&linesStyle, "linesStyle", "", `foreground and background colors for inline line numbers, e.g. --linesStyle "#fff000 bg:#000fff"`)
                                _ = cmd.RegisterFlagCompletionFunc("linesStyle", cobra.NoFileCompletions)
                        },
                }