MCPcopy
hub / github.com/cloudflare/cloudflared / ResolvePath

Method ResolvePath

cmd/cloudflared/service_template.go:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (st *ServiceTemplate) ResolvePath() (string, error) {
28 resolvedPath, err := homedir.Expand(st.Path)
29 if err != nil {
30 return "", fmt.Errorf("error resolving path %s: %v", st.Path, err)
31 }
32 return resolvedPath, nil
33}
34
35func (st *ServiceTemplate) Generate(args *ServiceTemplateArgs) error {
36 tmpl, err := template.New(st.Path).Parse(st.Content)

Callers 5

GenerateMethod · 0.95
RemoveMethod · 0.95
installLaunchdFunction · 0.80
uninstallLaunchdFunction · 0.80
installSysvFunction · 0.80

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected