(report format.Report)
| 93 | } |
| 94 | |
| 95 | func 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 | |
| 103 | func 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"} |