Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arctic-cli/interface
/ shortenPath
Function
shortenPath
packages/arctic/src/cli/cmd/uninstall.ts:354–360 ·
view source on GitHub ↗
(p: string)
Source
from the content-addressed store, hash-verified
352
}
353
354
function
shortenPath(p: string): string {
355
const
home = os.homedir()
356
if
(p.startsWith(home)) {
357
return
p.replace(home,
"~"
)
358
}
359
return
p
360
}
Callers
1
showRemovalSummary
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected