MCPcopy Create free account
hub / github.com/larksuite/cli / redactHome

Function redactHome

cmd/platform_bootstrap.go:293–298  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

291}
292
293func redactHome(s string) string {
294 if home, err := vfs.UserHomeDir(); err == nil && home != "" {
295 s = strings.ReplaceAll(s, home, "~")
296 }
297 return s
298}

Callers 1

warnPolicyErrorFunction · 0.85

Calls 1

UserHomeDirFunction · 0.92

Tested by

no test coverage detected