MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / __enter__

Method __enter__

component-tests/cli.py:83–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 return json.loads(info.stdout)
82
83 def __enter__(self):
84 self.basecmd += ["run"]
85 self.logger.info(f"Run cmd {self.basecmd}")
86 self.cfd = CloudflaredProcess(self.basecmd, allow_input=False, capture_output=True)
87 return self.cfd
88
89 def __exit__(self, exc_type, exc_value, exc_traceback):
90 self.cfd.cleanup()

Callers

nothing calls this directly

Calls 1

CloudflaredProcessClass · 0.90

Tested by

no test coverage detected