MCPcopy
hub / github.com/epinna/tplmap / Shell

Class Shell

core/clis.py:3–16  ·  view source on GitHub ↗

Interactive shell.

Source from the content-addressed store, hash-verified

1import cmd
2
3class Shell(cmd.Cmd):
4 """Interactive shell."""
5
6 def __init__(self, inject_function, prompt):
7 cmd.Cmd.__init__(self)
8
9 self.inject_function = inject_function
10 self.prompt = prompt
11
12 def default(self, line):
13 print self.inject_function(line)
14
15 def emptyline(self):
16 pass
17
18class MultilineShell(cmd.Cmd):
19 """Interactive multiline shell."""

Callers 1

check_template_injectionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected