Resolve PR feedback
This commit is contained in:
parent
e9d8092ffc
commit
9e00f1e4f2
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue