MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / uninstallMacos

Function uninstallMacos

apps/cli/src/daemon/service.ts:156–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156function uninstallMacos(): void {
157 if (!fs.existsSync(PLIST_PATH)) {
158 console.log('No system service found.')
159 removeMeta()
160 return
161 }
162 launchctlUnload(PLIST_PATH)
163 fs.unlinkSync(PLIST_PATH)
164 removeMeta()
165 console.log(`ChatLab system service removed.`)
166}
167
168function statusMacos(): ServiceStatus {
169 if (!fs.existsSync(PLIST_PATH)) return { installed: false, running: false }

Callers 1

serviceUninstallFunction · 0.85

Calls 2

removeMetaFunction · 0.85
launchctlUnloadFunction · 0.85

Tested by

no test coverage detected