MCPcopy
hub / github.com/derailed/k9s / mustHomeDir

Function mustHomeDir

internal/client/helpers.go:91–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func mustHomeDir() string {
92 usr, err := user.Current()
93 if err != nil {
94 slog.Error("Die getting user home directory", slogs.Error, err)
95 os.Exit(1)
96 }
97 return usr.HomeDir
98}
99
100func toHostDir(host string) string {
101 h := strings.Replace(

Callers 1

CachedDiscoveryMethod · 0.85

Calls 2

CurrentMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…