MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / isKnownViewFilter

Function isKnownViewFilter

cmd/wsh/cmd/wshcmd-blocks.go:283–294  ·  view source on GitHub ↗

isKnownViewFilter checks if a filter value is recognized

(f string)

Source from the content-addressed store, hash-verified

281
282// isKnownViewFilter checks if a filter value is recognized
283func isKnownViewFilter(f string) bool {
284 switch strings.ToLower(strings.TrimSpace(f)) {
285 case "term", "terminal", "shell", "console",
286 "web", "browser", "url",
287 "preview", "edit",
288 "sysinfo", "sys", "system",
289 "waveai", "ai", "assistant":
290 return true
291 default:
292 return false
293 }
294}

Callers 1

blocksListRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected