MCPcopy Index your code
hub / github.com/coder/coder / Filter

Method Filter

cli/cliui/filter.go:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (w *WorkspaceFilter) Filter() codersdk.WorkspaceFilter {
36 var f codersdk.WorkspaceFilter
37 if w.all {
38 return f
39 }
40 f.FilterQuery = w.searchQuery
41 if f.FilterQuery == "" {
42 f.FilterQuery = defaultQuery
43 }
44 return f
45}
46
47func (w *WorkspaceFilter) AttachOptions(opts *serpent.OptionSet) {
48 *opts = append(*opts,

Callers 4

scheduleShowMethod · 0.45
listMethod · 0.45
externalWorkspaceListMethod · 0.45
proxyServerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected