fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

cmd/zoekt: allow multiple arguments (#868)

They are interpreted as AND, ie.

zoekt a b c

is equivalent to

zoekt "a b c"

+3 -2
+3 -2
cmd/zoekt/main.go
··· 23 23 "os" 24 24 "path/filepath" 25 25 "runtime/pprof" 26 + "strings" 26 27 "time" 27 28 28 29 "github.com/felixge/fgprof" ··· 164 165 flag.Usage = func() { 165 166 name := os.Args[0] 166 167 fmt.Fprintf(os.Stderr, "Usage:\n\n %s [option] QUERY\n"+ 167 - "for example\n\n %s 'byte file:java -file:test'\n\n", name, name) 168 + "for example\n\n %s byte file:java -file:test\n\n", name, name) 168 169 flag.PrintDefaults() 169 170 fmt.Fprintf(os.Stderr, "\n") 170 171 } ··· 175 176 flag.Usage() 176 177 os.Exit(2) 177 178 } 178 - pat := flag.Arg(0) 179 + pat := strings.Join(flag.Args(), " ") 179 180 180 181 if !*verbose { 181 182 log.SetOutput(io.Discard)