MCPcopy
hub / github.com/pyload/pyload / __init__

Method __init__

pyLoadCli.py:55–83  ·  view source on GitHub ↗
(self, client, command)

Source from the content-addressed store, hash-verified

53
54class Cli:
55 def __init__(self, client, command):
56 self.client = client
57 self.command = command
58
59 if not self.command:
60 renameProcess('pyLoadCli')
61 self.getch = Getch()
62 self.input = ""
63 self.inputline = 0
64 self.lastLowestLine = 0
65 self.menuline = 0
66
67 self.lock = Lock()
68
69 #processor funcions, these will be changed dynamically depending on control flow
70 self.headerHandler = self #the download status
71 self.bodyHandler = self #the menu section
72 self.inputHandler = self
73
74 os.system("clear")
75 println(1, blue("py") + yellow("Load") + white(_(" Command Line Interface")))
76 println(2, "")
77
78 self.thread = RefreshThread(self)
79 self.thread.start()
80
81 self.start()
82 else:
83 self.processCommand()
84
85 def reset(self):
86 """ reset to initial main menu """

Callers 1

__init__Method · 0.45

Calls 10

startMethod · 0.95
processCommandMethod · 0.95
renameProcessFunction · 0.90
GetchClass · 0.90
printlnFunction · 0.85
blueFunction · 0.85
yellowFunction · 0.85
whiteFunction · 0.85
RefreshThreadClass · 0.85
_Function · 0.50

Tested by

no test coverage detected