MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / runUpgradeAction

Function runUpgradeAction

apps/cli/src/index.ts:87–96  ·  view source on GitHub ↗
(action: () => Promise<void>)

Source from the content-addressed store, hash-verified

85}
86
87const runUpgradeAction = async (action: () => Promise<void>) => {
88 try {
89 await action()
90 process.exit(0)
91 } catch (error) {
92 const message = error instanceof Error ? error.message : String(error)
93 console.error(`[CLI] Error: ${message}`)
94 process.exit(1)
95 }
96}
97
98applyListOptions(listCommand.command("commands").description("List available slash commands")).action(
99 async (options: Parameters<typeof listCommands>[0]) => {

Callers 1

index.tsFile · 0.85

Calls 2

errorMethod · 0.65
StringInterface · 0.50

Tested by

no test coverage detected