MCPcopy
hub / github.com/kgretzky/evilginx2 / AddSubCommand

Method AddSubCommand

core/help.go:55–62  ·  view source on GitHub ↗
(cmd string, sub_cmds []string, sub_disp string, cmd_help string)

Source from the content-addressed store, hash-verified

53}
54
55func (h *Help) AddSubCommand(cmd string, sub_cmds []string, sub_disp string, cmd_help string) {
56 if subm, ok := h.sub_cmds[cmd]; ok {
57 subm[sub_disp] = cmd_help
58 }
59 if _, ok := h.sub_disp[cmd]; ok {
60 h.sub_disp[cmd] = append(h.sub_disp[cmd], sub_disp)
61 }
62}
63
64func (h *Help) GetCommands() []string {
65 return h.cmd_names

Callers 1

createHelpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected