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

Method Replace

cli/allowlistflag.go:62–70  ·  view source on GitHub ↗
(items []string)

Source from the content-addressed store, hash-verified

60}
61
62func (a *AllowListFlag) Replace(items []string) error {
63 *a = []codersdk.APIAllowListTarget{}
64 for _, item := range items {
65 if err := a.Append(item); err != nil {
66 return err
67 }
68 }
69 return nil
70}
71
72func (a *AllowListFlag) GetSlice() []string {
73 out := make([]string, len(*a))

Callers 15

TestWatchChatGitFunction · 0.80
TestWatchAgentContainersFunction · 0.80
hashKeyFunction · 0.80
prometheusMetricToStringFunction · 0.80
Test_ResolveRequestFunction · 0.80
AppBaseURLMethod · 0.80
CompileHostnamePatternFunction · 0.80
SubdomainAppURLMethod · 0.80
RunFunction · 0.80
DaysOfWeekMethod · 0.80

Calls 1

AppendMethod · 0.95

Tested by 8

TestWatchChatGitFunction · 0.64
TestWatchAgentContainersFunction · 0.64
prometheusMetricToStringFunction · 0.64
Test_ResolveRequestFunction · 0.64
Test_ResultsFunction · 0.64