MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / Path

Function Path

internal/gcloud/gcloud.go:45–51  ·  view source on GitHub ↗

Path returns the absolute path to the gcloud command. If the command is not found it returns an error.

()

Source from the content-addressed store, hash-verified

43// Path returns the absolute path to the gcloud command. If the command is not
44// found it returns an error.
45func Path() (string, error) {
46 g := "gcloud"
47 if runtime.GOOS == "windows" {
48 g = g + ".cmd"
49 }
50 return exec.LookPath(g)
51}
52
53// configHelper implements oauth2.TokenSource via the `gcloud config config-helper` command.
54type configHelper struct{}

Callers 1

TokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected