(self, config, config_path, logger)
| 9 | |
| 10 | class 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 |
nothing calls this directly
no test coverage detected