MCPcopy Index your code
hub / github.com/secdev/scapy / CommandsList

Class CommandsList

scapy/config.py:347–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345
346
347class CommandsList(List[Callable[..., Any]]):
348 def __repr__(self):
349 # type: () -> str
350 s = []
351 for li in sorted(self, key=lambda x: x.__name__):
352 doc = li.__doc__ if li.__doc__ else "--"
353 doc = doc.lstrip().split('\n', 1)[0]
354 s.append("%-22s: %s" % (li.__name__, doc))
355 return "\n".join(s)
356
357 def register(self, cmd):
358 # type: (DecoratorCallable) -> DecoratorCallable
359 self.append(cmd)
360 return cmd # return cmd so that method can be used as a decorator
361
362
363def lsc():

Callers 1

ConfClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected