MCPcopy
hub / github.com/go-task/task / IsRemoteEntrypoint

Function IsRemoteEntrypoint

taskfile/node.go:77–85  ·  view source on GitHub ↗
(entrypoint string)

Source from the content-addressed store, hash-verified

75}
76
77func IsRemoteEntrypoint(entrypoint string) bool {
78 scheme, _ := getScheme(entrypoint)
79 switch scheme {
80 case "git", "http", "https":
81 return true
82 default:
83 return false
84 }
85}
86
87func getScheme(uri string) (string, error) {
88 u, err := giturls.Parse(uri)

Callers 4

getSpecialVarsMethod · 0.92
ResolveEntrypointMethod · 0.85
ResolveEntrypointMethod · 0.85
ResolveEntrypointMethod · 0.85

Calls 1

getSchemeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…