MCPcopy Create free account
hub / github.com/devops-rob/target-cli / HomeFolder

Function HomeFolder

pkg/targetdir/targetdir.go:11–18  ·  view source on GitHub ↗

HomeFolder returns the users homefolder this will be $HOME on windows and mac and USERPROFILE on windows

()

Source from the content-addressed store, hash-verified

9// HomeFolder returns the users homefolder this will be $HOME on windows and mac and
10// USERPROFILE on windows
11func HomeFolder() string {
12 if runtime.GOOS == "windows" {
13 return os.Getenv("USERPROFILE")
14
15 }
16
17 return os.Getenv("HOME")
18}
19
20// TargetHome returns the location of the target
21// folder, usually $HOME/.target

Callers 1

TargetHomeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected