MCPcopy Create free account
hub / github.com/git-bug/git-bug / Configure

Method Configure

bridge/core/bridge.go:205–220  ·  view source on GitHub ↗

Configure run the target specific configuration process

(params BridgeParams, interactive bool)

Source from the content-addressed store, hash-verified

203
204// Configure run the target specific configuration process
205func (b *Bridge) Configure(params BridgeParams, interactive bool) error {
206 validateParams(params, b.impl)
207
208 conf, err := b.impl.Configure(b.repo, params, interactive)
209 if err != nil {
210 return err
211 }
212
213 err = b.impl.ValidateConfig(conf)
214 if err != nil {
215 return fmt.Errorf("invalid configuration: %v", err)
216 }
217
218 b.conf = conf
219 return b.storeConfig(conf)
220}
221
222func validateParams(params BridgeParams, impl BridgeImpl) {
223 validParams := impl.ValidParams()

Callers 1

runBridgeNewFunction · 0.95

Calls 5

storeConfigMethod · 0.95
validateParamsFunction · 0.85
ErrorfMethod · 0.80
ConfigureMethod · 0.65
ValidateConfigMethod · 0.65

Tested by

no test coverage detected