MCPcopy
hub / github.com/HughYau/qiushi-skill / formatTargetPath

Function formatTargetPath

bin/lib/detect-platform.mjs:151–157  ·  view source on GitHub ↗
(platform, scope = "user")

Source from the content-addressed store, hash-verified

149}
150
151export function formatTargetPath(platform, scope = "user") {
152 if (!platform?.paths) {
153 return null;
154 }
155
156 return platform.paths[scope] ?? null;
157}
158
159export function isCopyPlatform(platform) {
160 return platform?.mode === "copy";

Callers 5

promptInstallChoicesFunction · 0.90
runUninstallFunction · 0.90
assertManagedTargetFunction · 0.90
installTargetFunction · 0.90
uninstallTargetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected