MCPcopy Create free account
hub / github.com/cli/cli / NewDetector

Function NewDetector

internal/featuredetection/feature_detection.go:203–208  ·  view source on GitHub ↗
(httpClient *http.Client, host string)

Source from the content-addressed store, hash-verified

201}
202
203func NewDetector(httpClient *http.Client, host string) Detector {
204 return &detector{
205 httpClient: httpClient,
206 host: host,
207 }
208}
209
210// NewCachedDetector returns a Detector that probes the given host and caches detection results for the given TTL.
211func NewCachedDetector(httpClient *http.Client, host string, ttl time.Duration) Detector {

Callers 8

NewCmdExtensionFunction · 0.92
AuthFlowFunction · 0.92
TestProjectV1SupportFunction · 0.85
TestReleaseFeaturesFunction · 0.85
TestAuthFeaturesFunction · 0.85
TestActionsFeaturesFunction · 0.85
TestEventsFeaturesFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestProjectV1SupportFunction · 0.68
TestReleaseFeaturesFunction · 0.68
TestAuthFeaturesFunction · 0.68
TestActionsFeaturesFunction · 0.68
TestEventsFeaturesFunction · 0.68