MCPcopy Create free account
hub / github.com/anomalyco/opencode / run

Function run

packages/tui/src/feature-plugins/system/diff-viewer.tsx:438–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436 title: "Close diff viewer",
437 category: "VCS",
438 run() {
439 const returnRoute = params()?.returnRoute
440 props.api.ui.dialog.clear()
441
442 props.api.route.navigate(
443 returnRoute?.name ?? "home",
444 returnRoute && "params" in returnRoute ? returnRoute.params : undefined,
445 )
446 },
447 },
448 {
449 name: "diff.down",

Callers

nothing calls this directly

Calls 15

singlePatchFileIndexFunction · 0.90
paramsFunction · 0.85
jumpRelativeHunkFunction · 0.85
jumpRelativePatchFileFunction · 0.85
setFocusFunction · 0.85
scrollSinglePatchToTopFunction · 0.85
currentPatchFileIndexFunction · 0.85
firstPatchFileIndexFunction · 0.85
selectPatchFileFunction · 0.85

Tested by

no test coverage detected