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

Method __init__

component-tests/cli.py:11–18  ·  view source on GitHub ↗
(self, config, config_path, logger)

Source from the content-addressed store, hash-verified

9
10class CloudflaredCli:
11 def __init__(self, config, config_path, logger):
12 self.basecmd = [config.cloudflared_binary, "tunnel"]
13 if config_path is not None:
14 self.basecmd += ["--config", str(config_path)]
15 origincert = get_config_from_file()["origincert"]
16 if origincert:
17 self.basecmd += ["--origincert", origincert]
18 self.logger = logger
19
20 def _run_command(self, subcmd, subcmd_name, needs_to_pass=True):
21 cmd = self.basecmd + subcmd

Callers

nothing calls this directly

Calls 1

get_config_from_fileFunction · 0.90

Tested by

no test coverage detected