MCPcopy Create free account
hub / github.com/beelit94/python-terraform / wrapper

Method wrapper

python_terraform/terraform.py:89–94  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

87
88 def __getattr__(self, item: str) -> Callable:
89 def wrapper(*args, **kwargs):
90 cmd_name = str(item)
91 if cmd_name.endswith("_cmd"):
92 cmd_name = cmd_name[:-4]
93 logger.debug("called with %r and %r", args, kwargs)
94 return self.cmd(cmd_name, *args, **kwargs)
95
96 return wrapper
97

Callers

nothing calls this directly

Calls 1

cmdMethod · 0.95

Tested by

no test coverage detected