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

Function cloudflared_cmd

component-tests/util.py:123–135  ·  view source on GitHub ↗
(config, config_path, cfd_args, cfd_pre_args, root)

Source from the content-addressed store, hash-verified

121 return subprocess.run(cmd, check=expect_success, capture_output=capture_output)
122
123def cloudflared_cmd(config, config_path, cfd_args, cfd_pre_args, root):
124 cmd = []
125 if root:
126 cmd += ["sudo"]
127 cmd += [config.cloudflared_binary]
128 cmd += cfd_pre_args
129
130 if config_path is not None:
131 cmd += ["--config", str(config_path)]
132
133 cmd += cfd_args
134 LOGGER.info(f"Run cmd {cmd} with config {config}")
135 return cmd
136
137@contextmanager
138def run_cloudflared_background(cmd, allow_input, capture_output):

Callers 1

start_cloudflaredFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…