MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / newSubcommandContext

Function newSubcommandContext

cmd/cloudflared/tunnel/subcommand_context.go:47–53  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

45}
46
47func newSubcommandContext(c *cli.Context) (*subcommandContext, error) {
48 return &subcommandContext{
49 c: c,
50 log: logger.CreateLoggerFromContext(c, logger.EnableTerminalLog),
51 fs: realFileSystem{},
52 }, nil
53}
54
55// Returns something that can find the given tunnel's credentials file.
56func (sc *subcommandContext) credentialFinder(tunnelID uuid.UUID) CredFinder {

Callers 15

addVirtualNetworkCommandFunction · 0.85
TunnelCommandFunction · 0.85
showRoutesCommandFunction · 0.85
addRouteCommandFunction · 0.85
deleteRouteCommandFunction · 0.85
getRouteByIPCommandFunction · 0.85
createCommandFunction · 0.85
listCommandFunction · 0.85
tunnelInfoFunction · 0.85

Calls 1

CreateLoggerFromContextFunction · 0.92

Tested by

no test coverage detected