MCPcopy Create free account
hub / github.com/NetSys/bess / bind_var

Method bind_var

bessctl/cli.py:133–137  ·  view source on GitHub ↗
(self, var_type, line)

Source from the content-addressed store, hash-verified

131 # mapped_value: Python value/object from the consumed token(s)
132 # tail: the rest of input line
133 def bind_var(self, var_type, line):
134 if var_type == 'keyword':
135 return None, self.split_var(var_type, line)[1]
136
137 raise self.InternalError('type "%s" is undefined' % var_type)
138
139 # Compare a command with a user-typed line.
140 # It returns (match_type, candidates, syntax_token, score).

Callers 1

bind_argsMethod · 0.95

Calls 1

split_varMethod · 0.95

Tested by

no test coverage detected