MCPcopy Index your code
hub / github.com/jetify-com/devbox / IsTextDevboxConfig

Method IsTextDevboxConfig

internal/pullbox/config.go:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15)
16
17func (p *pullbox) IsTextDevboxConfig() bool {
18 if u, err := url.Parse(p.URL); err == nil {
19 ext := filepath.Ext(u.Path)
20 return cuecfg.IsSupportedExtension(ext)
21 }
22 // For invalid URLS, just look at the extension
23 ext := filepath.Ext(p.URL)
24 return cuecfg.IsSupportedExtension(ext)
25}
26
27func (p *pullbox) pullTextDevboxConfig(ctx context.Context) error {
28 if p.isLocalConfig() {

Callers 1

PullMethod · 0.95

Calls 1

IsSupportedExtensionFunction · 0.92

Tested by

no test coverage detected