MCPcopy Create free account
hub / github.com/SpectoLabs/hoverfly / locateProbableCompletionFileLocation

Function locateProbableCompletionFileLocation

hoverctl/cmd/bash_completion.go:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func locateProbableCompletionFileLocation() string {
91 var completionFileLocation string
92 if runtime.GOOS == "darwin" {
93 completionFileLocation = path.Join(string(os.PathSeparator)+"usr", "local", "etc", "bash_completion.d", "hoverctl")
94 } else {
95 completionFileLocation = path.Join(string(os.PathSeparator)+"etc", "bash_completion.d", "hoverctl")
96 }
97 return completionFileLocation
98}
99
100func init() {
101 RootCmd.AddCommand(completionCmd)

Callers 1

determineSymlinkLocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected