()
| 15 | ) |
| 16 | |
| 17 | func (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 | |
| 27 | func (p *pullbox) pullTextDevboxConfig(ctx context.Context) error { |
| 28 | if p.isLocalConfig() { |
no test coverage detected