MCPcopy Create free account
hub / github.com/celer-pkg/celer / printTree

Method printTree

cmds/cmd_tree.go:242–251  ·  view source on GitHub ↗
(info *portInfo)

Source from the content-addressed store, hash-verified

240}
241
242func (t *treeCmd) printTree(info *portInfo) {
243 t.printTreeWithPrefix(info, "", true)
244
245 // Count dependencies.
246 depCount, devDepCount := t.countDependencies(info)
247
248 // Print statistics.
249 color.Printf(color.Line, "---------------------------------------------\n")
250 color.Printf(color.Summary, "dependencies: %d dev_dependencies: %d\n", depCount, devDepCount)
251}
252
253func (t *treeCmd) countDependencies(info *portInfo) (int, int) {
254 depCount := 0

Callers 3

TestTreeCmd_PrintTreeFunction · 0.95
showPortTreeMethod · 0.95
showProjectTreeMethod · 0.95

Calls 3

printTreeWithPrefixMethod · 0.95
countDependenciesMethod · 0.95
PrintfFunction · 0.92

Tested by 1

TestTreeCmd_PrintTreeFunction · 0.76