MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / TaskInfo

Function TaskInfo

cmd/ui/ui.go:95–101  ·  view source on GitHub ↗
(report format.Report)

Source from the content-addressed store, hash-verified

93}
94
95func TaskInfo(report format.Report) *tview.TextView {
96 dep, vul := format.Statis(report)
97 info := tview.NewTextView().
98 SetText(fmt.Sprintf("%s\n%s", dep, vul))
99 info.SetTextColor(tcell.ColorBlue)
100 return info
101}
102
103func UIHelp() *tview.TextView {
104 tips := []string{"j:down", "k:up", "space:expand/collapse", "h/l:switch", "g:top", "G:bottom", "crtl+c/q:quit", "{:collapse_all", "}:expand_all", "[:collapse_node", "]:expand_node"}

Callers 1

OpenUIFunction · 0.70

Calls 1

StatisFunction · 0.92

Tested by

no test coverage detected