Resolve PR feedback

This commit is contained in:
Heath Stewart 2024-10-14 15:08:23 -07:00
parent e9d8092ffc
commit 9e00f1e4f2
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
this will be slower and increase the rate limit used. Instead of printing a table,
code will be printed with highlights.
For supported regular expression syntax, see https://pkg.go.dev/regexp/syntax
For supported regular expression syntax, see <https://pkg.go.dev/regexp/syntax>
`, "`"),
Example: heredoc.Doc(`
# list all secret gists from your user account

View file

@ -188,10 +188,10 @@ func formatMatch(t string, matches []search.Match, io *iostreams.IOStreams) []st
continue
}
if _, ok := startIndices[i]; ok {
b.WriteString(cs.HighlightStart()) // black text on yellow background
b.WriteString(cs.HighlightStart())
found = true
} else if _, ok := endIndices[i]; ok {
b.WriteString(cs.Reset()) // color reset
b.WriteString(cs.Reset())
}
b.WriteRune(c)
}