MCPcopy Create free account
hub / github.com/appleboy/CodeGPT / WithExcludeList

Function WithExcludeList

git/options.go:28–36  ·  view source on GitHub ↗

WithExcludeList returns an Option that sets the excludeList field of a config object to the given value.

(val []string)

Source from the content-addressed store, hash-verified

26
27// WithExcludeList returns an Option that sets the excludeList field of a config object to the given value.
28func WithExcludeList(val []string) Option {
29 return optionFunc(func(c *config) {
30 // If the given value is empty, do nothing.
31 if len(val) == 0 {
32 return
33 }
34 c.excludeList = val
35 })
36}
37
38// WithEnableAmend returns an Option that sets the isAmend field of a config object to the given value.
39func WithEnableAmend(val bool) Option {

Callers 2

review.goFile · 0.92
commit.goFile · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected