MCPcopy Index your code
hub / github.com/git-bug/git-bug / repairQuery

Function repairQuery

commands/bug/bug.go:182–193  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

180}
181
182func repairQuery(args []string) string {
183 for i, arg := range args {
184 split := strings.Split(arg, ":")
185 for j, s := range split {
186 if strings.Contains(s, " ") {
187 split[j] = fmt.Sprintf("\"%s\"", s)
188 }
189 }
190 args[i] = strings.Join(split, ":")
191 }
192 return strings.Join(args, " ")
193}
194
195func bugsJsonFormatter(env *execenv.Env, excerpts []*cache.BugExcerpt) error {
196 jsonBugs := make([]cmdjson.BugExcerpt, len(excerpts))

Callers 2

runBugFunction · 0.85
Test_repairQueryFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_repairQueryFunction · 0.68