(currentNode *tview.TreeNode, cache *EntryCache, fileSuffix string)
| 123 | } |
| 124 | |
| 125 | func exportCacheToFile(currentNode *tview.TreeNode, cache *EntryCache, fileSuffix string) { |
| 126 | exportMap := make(map[string]any) |
| 127 | currentNode.Walk(func(node, parent *tview.TreeNode) bool { |
| 128 | if node.GetReference() != nil { |
| 129 | nodeDN := node.GetReference().(string) |
| 130 | exportMap[nodeDN], _ = cache.Get(nodeDN) |
| 131 | } |
| 132 | return true |
| 133 | }) |
| 134 | |
| 135 | writeDataExport(exportMap, fileSuffix, "tree_objects") |
| 136 | } |
| 137 | |
| 138 | func openDeleteObjectForm(node *tview.TreeNode, done func()) { |
| 139 | currentFocus := app.GetFocus() |
no test coverage detected