MCPcopy Create free account
hub / github.com/cloudwan/gohan / prepare

Method prepare

tools/bash_completion_tests.py:6–15  ·  view source on GitHub ↗
(self, program, command)

Source from the content-addressed store, hash-verified

4
5class Completion():
6 def prepare(self, program, command):
7 self.program=program
8 self.COMP_LINE="%s %s" % (program, command)
9 self.COMP_WORDS=self.COMP_LINE.rstrip()
10 args=command.split()
11 self.COMP_CWORD=len(args)
12 self.COMP_POINT=len(self.COMP_LINE)
13 if (self.COMP_LINE[-1] == ' '):
14 self.COMP_WORDS += " "
15 self.COMP_CWORD += 1
16
17 def run(self, completion_file, program, command):
18 self.prepare(program, command)

Callers 2

runMethod · 0.95
assertEqualCompletionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected