MCPcopy Create free account
hub / github.com/diillson/chatcli / applyGraphMeta

Function applyGraphMeta

cli/plugins/builtin_graphview.go:464–472  ·  view source on GitHub ↗
(data *GraphData, cfg graphViewArgs)

Source from the content-addressed store, hash-verified

462}
463
464func applyGraphMeta(data *GraphData, cfg graphViewArgs) {
465 if cfg.Title != "" {
466 data.Title = cfg.Title
467 }
468 if data.Title == "" {
469 data.Title = i18n.T("plugins.graphview.default_title")
470 }
471 data.Theme = cfg.Theme
472}
473
474func readGraphDataFile(path string) (GraphData, error) {
475 clean := filepath.Clean(path)

Callers 1

resolveGraphDataFunction · 0.85

Calls 1

TFunction · 0.92

Tested by

no test coverage detected