MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / uninstallOneFromApp

Function uninstallOneFromApp

internal/cli/management.go:2160–2171  ·  view source on GitHub ↗
(kind entities.Kind, app, name string, out io.Writer)

Source from the content-addressed store, hash-verified

2158}
2159
2160func uninstallOneFromApp(kind entities.Kind, app, name string, out io.Writer) {
2161 path, removed, err := entities.UninstallFromApp(name, kind, app)
2162 if err != nil {
2163 fmt.Fprintf(out, " Error removing %s from %s: %v\n", name, app, err)
2164 return
2165 }
2166 if !removed {
2167 fmt.Fprintf(out, " %s not found in %s (%s)\n", name, app, path)
2168 return
2169 }
2170 fmt.Fprintf(out, " Removed %s from %s\n", name, app)
2171}
2172
2173func uninstallAllFromApp(kind entities.Kind, app string, out io.Writer) {
2174 appPaths := entities.AppPathsFor(kind)

Callers 2

entityUninstallCommandFunction · 0.85
interactiveUninstallFunction · 0.85

Calls 1

UninstallFromAppFunction · 0.92

Tested by

no test coverage detected